code: def test_(tmp_dir, dvc, scm, capsys):
      assert main(["version"]) == 0
  
      out, _ = capsys.readouterr()
      assert re.search(rf"DVC version: {DVC_VERSION_REGEX}", out)
      assert re.search(f"Platform: {PYTHON_VERSION_REGEX} on .*", out)
      for subproject in SUBPROJECTS:
          assert re.search(rf"{subproject} = .*", out)
  
      assert find_supported_remotes(out)
      assert re.search(r"Cache types: .*", out)
      assert re.search(r"Caches: local", out)
      assert re.search(r"Remotes: None", out)
      assert "Repo: dvc, git" in out
  
imports: import re
  from dvc.cli import main
  from tests.unit.test_info import DVC_VERSION_REGEX, PYTHON_VERSION_REGEX, SUBPROJECTS, find_supported_remotes
label_desc: Use image node_id 1 for calling a global function with example usage: test_(tmp_dir, dvc, scm, capsys) without return types