docs: def realpath(path):
      """
      Return ``path`` with symlinks resolved.
  
      Currently this function returns non-local paths unchanged.
      """
      scheme, netloc, path_ = parse(path)
      if scheme == 'file' or hdfs_fs.default_is_local():
          return unparse(scheme, netloc, os.path.realpath(path_))
      return path