code: def working_directory(path):
      
      prev_cwd = os.getcwd()
      os.chdir(path)
      try:
          yield
      finally:
          os.chdir(prev_cwd)
docs: A context manager that changes the working directory to the given
      path, and then changes it back to its previous value on exit.