docstr: Return repo fspath for the given artifact.
docstr_tok: ["Return","repo","fspath","for","the","given","artifact","."]
code: def get_path(self, name: str):
      """Return repo fspath for the given artifact."""
      from gto.constants import SEPARATOR_IN_NAME, fullname_re
  
      name = _reformat_name(name)
      m = fullname_re.match(name)
      if not m:
          raise ArtifactNotFoundError(name)
      dirname = m.group("dirname")
      if dirname:
          dirname = dirname.rstrip(SEPARATOR_IN_NAME)
      dvcyaml = (
          os.path.join(dirname, PROJECT_FILE)
          if dirname
          else PROJECT_FILE
      )
      artifact_name = m.group("name")
      try:
          artifact = self.read()[dvcyaml][artifact_name]
      except KeyError as exc:
          raise ArtifactNotFoundError(name) from exc
      return (
          os.path.join(dirname, artifact.path)
          if dirname
          else artifact.path
      )
  
imports: import os
  import posixpath
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union
  from dvc.annotations import Artifact
  from dvc.dvcfile import PROJECT_FILE
  from dvc.exceptions import ArtifactNotFoundError, DvcException, FileExistsLocallyError, InvalidArgumentError
  from dvc.log import logger
  from dvc.utils import relpath, resolve_output
  from dvc.utils.objects import cached_property
  from dvc.utils.serialize import modify_yaml
label_desc: Use image node_id 6 for calling the Artifacts obj's underlying member method code with example usage: obj.get_path(name) and returns: unknown