code: def assert_script_in_current_directory():
    
  
    script = sys.argv[0]
    assert os.path.abspath(os.path.dirname(script)) == os.path.abspath(
      '.'), f"Change into directory of script {script} and run again."
docs: Assert fail if current directory is different from location of the script