class_docstr: Github metadata of a file or directory.
class_docstr_tok: ["Github","metadata","of","a","file","or","directory","."]
code: def from_path(cls, path: str) -> "_PathMetadata":
      repo, branch, subpath = _parse_github_path(path)
      return cls(path=path, repo=repo, branch=branch, subpath=subpath)
  
imports: import dataclasses
  import functools
  import os
  import pathlib
  import posixpath
  from typing import Iterator, Mapping, MutableMapping, Optional, Set, Tuple
  from etils import epath
  import requests
  from tensorflow_datasets.core import utils
label_desc: Use image node_id 1 for calling the _PathMetadata obj's underlying member method code with example usage: obj.from_path(cls, path) and returns: cls