code: def test_plots_show_non_existing(tmp_dir, dvc, capsys):
      result = dvc.plots.show(targets=["plot.json"])
      assert isinstance(
          get_plot(
              result, "workspace", file="plot.json", endkey="error"
          ),
          FileNotFoundError,
      )
  
      cap = capsys.readouterr()
      assert (
          "DVC failed to load some plots for following revisions: 'workspace'"
          in cap.err
      )
  
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 7 for calling a global function with example usage: test_plots_show_non_existing(tmp_dir, dvc, capsys) without return types