code: def chdir(path):
      
      cur_cwd = os.getcwd()
      os.chdir(path)
      try:
          yield
      finally:
          os.chdir(cur_cwd)
docs: Change the working directory to `path` for the duration of this context
      manager.
  
      :param str path: The path to change to