code: def change_dir(directory):
    
    def cd_decorator(func):
      @wraps(func)
      def wrapper(*args, **kwargs):
        org_path = os.getcwd()
        os.chdir(directory)
        func(*args, **kwargs)
        os.chdir(org_path)
      return wrapper
    return cd_decorator
docs: Wraps a function to run in a given directory.