code: def test_show_non_metric(tmp_dir, scm, use_dvc):
      tmp_dir.gen("metrics.yaml", "foo: 1.1")
  
      if use_dvc:
          dvc = Repo.init()
      else:
          dvc = Repo(uninitialized=True)
  
      assert dvc.metrics.show(targets=["metrics.yaml"]) == {
          "": {"data": {"metrics.yaml": {"data": {"foo": 1.1}}}}
      }
  
      if not use_dvc:
          assert not (tmp_dir / ".dvc").exists()
  
imports: import json
  import os
  from os.path import join
  import pytest
  from funcy import get_in
  from dvc.cli import main
  from dvc.dvcfile import PROJECT_FILE
  from dvc.exceptions import OverlappingOutputPathsError
  from dvc.repo import Repo
  from dvc.utils.fs import remove
  from dvc.utils.serialize import JSONFileCorruptedError
label_desc: Use image node_id 10 for calling a global function with example usage: test_show_non_metric(tmp_dir, scm, use_dvc) without return types