code: def test_init_no_scm_fail_api(tmp_dir):
      with pytest.raises(InitError):
          DvcRepo.init()
  
file_path: dvc/tests/func/test_init.py
imports: import logging
  import os
  import pytest
  from dvc.cli import main
  from dvc.config import Config
  from dvc.exceptions import InitError
  from dvc.repo import Repo
label_desc: Use image node_id 4 for calling a global function with example usage: test_init_no_scm_fail_api(tmp_dir) without return types