code: def test_show_non_plot(tmp_dir, scm, use_dvc):
      metric = [
          {"first_val": 100, "val": 2},
          {"first_val": 200, "val": 3},
      ]
      (tmp_dir / "metric.json").dump_json(metric, sort_keys=True)
  
      if use_dvc:
          dvc = Repo.init()
      else:
          dvc = Repo(uninitialized=True)
  
      plots = dvc.plots.show(targets=["metric.json"])
  
      assert get_plot(plots, "workspace", file="metric.json") == metric
  
imports: import json
  import os
  import pytest
  from dvc.cli import main
  from dvc.dvcfile import PROJECT_FILE
  from dvc.exceptions import OverlappingOutputPathsError
  from dvc.repo import Repo
  from dvc.repo.plots import PlotMetricTypeError, onerror_collect
  from dvc.utils.fs import remove
  from dvc.utils.serialize import EncodingError, YAMLFileCorruptedError, modify_yaml
  from tests.utils.plots import get_plot
label_desc: Use image node_id 4 for calling a global function with example usage: test_show_non_plot(tmp_dir, scm, use_dvc) without return types