code: def test_init_no_scm_cli(tmp_dir):
      ret = main(["init", "--no-scm"])
      assert ret == 0
  
      dvc_path = tmp_dir / DvcRepo.DVC_DIR
      assert dvc_path.is_dir()
      assert Config(os.fspath(dvc_path))["core"]["no_scm"]
  
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 7 for calling a global function with example usage: test_init_no_scm_cli(tmp_dir) without return types