code: def test_show_malformed_metric(tmp_dir, scm, dvc, caplog):
      tmp_dir.gen("metric.json", '{"m":1')
  
      assert isinstance(
          dvc.metrics.show(targets=["metric.json"])[""]["data"][
              "metric.json"
          ]["error"],
          JSONFileCorruptedError,
      )
  
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 15 for calling a global function with example usage: test_show_malformed_metric(tmp_dir, scm, dvc, caplog) without return types