code: def is_repo_instance(cls, path):
          
          try:
              cls.get_version(path)
              return True
          except subprocess.CalledProcessError:
              # Git returns non-zero status
              return False
          except OSError:
              # Git unavailable?
              return False
docs: Return ``True`` if ``path`` is a source controlled repository.