code: def name_is_compatible(name: str) -> bool:
      """
      Only needed by DVCLive per iterative/dvclive#715
      Will be removed in future release.
      """
      from gto.constants import assert_name_is_valid
      from gto.exceptions import ValidationError
  
      try:
          assert_name_is_valid(name)
          return True
      except ValidationError:
          return False
  
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 2 for calling a global function with example usage: name_is_compatible(name) and returns: True, False