code: def test_config_set_in_non_dvc_repo(tmp_dir, caplog):
      assert main(["config", "core.analytics", "true"]) != 0
      out = caplog.text
      assert "Not inside a DVC repo" in out
  
imports: import os
  import textwrap
  import pytest
  from dvc.cli import main
  from dvc.config import Config, ConfigError
label_desc: Use image node_id 3 for calling a global function with example usage: test_config_set_in_non_dvc_repo(tmp_dir, caplog) without return types