NameError: name 'Path' is not defined

Thanks from me as well!!
Why do I need this command for colab and windows?