code: def _scm_in_use():
      from dvc.exceptions import NotDvcRepoError
      from dvc.repo import Repo
      from dvc.scm import NoSCM
  
      from .scm import SCM, SCMError
  
      try:
          scm = SCM(root_dir=Repo.find_root())
          return type(scm).__name__
      except SCMError:
          return NoSCM.__name__
      except NotDvcRepoError:
          pass
  
file_path: dvc/dvc/analytics.py
imports: import json
  import os
  from dvc.log import logger
  from .env import DVC_ANALYTICS_ENDPOINT, DVC_NO_ANALYTICS
label_desc: Use image node_id 4 for calling a global function with example usage: _scm_in_use() and returns: type, NoSCM