code: def scm(self) -> Optional["Git"]:
      from dvc.scm import Git
  
      if isinstance(self.repo.scm, Git):
          return self.repo.scm
      return None
  
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 the Artifacts obj's underlying member method code with example usage: obj.scm() and returns: None, self