code: def test_info_in_repo(scm_init, tmp_dir):
      tmp_dir.init(scm=scm_init, dvc=True)
      # Create `.dvc/cache`, that is needed to check supported link types.
      os.makedirs(tmp_dir.dvc.cache.local.path)
  
      dvc_info = get_dvc_info()
  
      assert re.search(rf"DVC version: {DVC_VERSION_REGEX}", dvc_info)
      assert re.search(
          f"Platform: {PYTHON_VERSION_REGEX} on .*", dvc_info
      )
      for subproject in SUBPROJECTS:
          assert re.search(rf"{subproject} = .*", dvc_info)
  
      assert find_supported_remotes(dvc_info)
      assert re.search(r"Cache types: .*", dvc_info)
  
      if scm_init:
          assert "Repo: dvc, git" in dvc_info
      else:
          assert "Repo: dvc (no_scm)" in dvc_info
  
file_path: dvc/tests/unit/test_info.py
imports: import os
  import re
  import shutil
  import pytest
  from dvc.info import SUBPROJECTS, get_dvc_info
label_desc: Use image node_id 2 for calling a global function with example usage: test_info_in_repo(scm_init, tmp_dir) without return types