code: def test_non_metric_and_dir_show(tmp_dir, dvc, run_copy_metrics):
      tmp_dir.gen(
          {
              "metrics_t.yaml": "foo: 1.1",
              "metrics": {"metric1.yaml": "bar: 1.2"},
          }
      )
  
      metric2 = os.fspath(tmp_dir / "metrics" / "metric2.yaml")
      run_copy_metrics(
          "metrics_t.yaml",
          metric2,
          name="copy-metric2",
          metrics=[metric2],
      )
  
      assert dvc.metrics.show(
          targets=["metrics_t.yaml", "metrics"]
      ) == {
          "": {
              "data": {
                  os.path.join("metrics", "metric1.yaml"): {
                      "data": {"bar": 1.2}
                  },
                  os.path.join("metrics", "metric2.yaml"): {
                      "data": {"foo": 1.1}
                  },
                  "metrics_t.yaml": {"data": {"foo": 1.1}},
              }
          }
      }
  
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 12 for calling a global function with example usage: test_non_metric_and_dir_show(tmp_dir, dvc, run_copy_metrics) without return types