This isn't reproducible.
python .\test4.py
Traceback (most recent call last):
File "D:\Downloads\yolov8-testing-pt-files-New%20folder\test4.py", line 175, in <module>
parser = argparse.ArgumentParser()
NameError: name 'argparse' is not defined