code: def test_init_no_scm_fail_cli(tmp_dir):
      ret = main(["init"])
      assert ret != 0
  
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 5 for calling a global function with example usage: test_init_no_scm_fail_cli(tmp_dir) without return types