code: def parent_folder(path, base=None):
      
      return path and os.path.dirname(resolved_path(path, base=base))
docs: :param str|None path: Path to file or folder
      :param str|None base: Base folder to use for relative paths (default: current working dir)
      :return str: Absolute path of parent folder of 'path'