code: def test_init_git(tmp_dir):
      Repo.init(os.fspath(tmp_dir))
      assert isinstance(SCM(os.fspath(tmp_dir)), Git)
  
file_path: dvc/tests/func/test_scm.py
imports: import os
  import pytest
  from git import Repo
  from dvc.scm import SCM, Git, NoSCM, SCMError, lfs_prefetch
label_desc: Use image node_id 2 for calling a global function with example usage: test_init_git(tmp_dir) without return types