code: def __init__(self):
      msg = (
          "Only supported for Git repositories. If you're "
          "seeing this error in a Git repo, try updating the DVC "
          "configuration with `dvc config core.no_scm false`."
      )
      super().__init__(msg)
  
imports: import os
  from contextlib import contextmanager
  from functools import partial
  from typing import TYPE_CHECKING, Iterator, List, Literal, Mapping, Optional, Union, overload
  from funcy import group_by
  from scmrepo.base import Base
  from scmrepo.git import Git
  from scmrepo.noscm import NoSCM
  from dvc.exceptions import DvcException
  from dvc.progress import Tqdm
label_desc: Use image node_id 1 to create a new NoSCMError object from inherited base classes: SCMError with example: obj = NoSCMError()