code: def test_repo_with_removed_plots(tmp_dir, capsys, repo_with_plots):
      from dvc.utils.fs import remove
  
      next(repo_with_plots())
  
      # even if there is no data, call should be successful
      remove(tmp_dir / ".dvc" / "cache")
      remove("linear.json")
      remove("confusion.json")
      remove("image.png")
  
      for s in ("show", "diff"):
          _, json_result, split_json_result = call(capsys, subcommand=s)
          errors = [
              {
                  "name": p,
                  "source": p,
                  "rev": "workspace",
                  "type": "FileNotFoundError",
                  "msg": f"[Errno 2] No storage files available: '{p}'",
              }
              for p in [
                  "linear.json",
                  "confusion.json",
                  "image.png",
              ]
          ]
          expected_result = {
              "errors": errors,
              "data": {
                  "image.png": [],
                  "confusion.json": [],
                  "linear.json": [],
              },
          }
          assert json_result == expected_result
          assert split_json_result == expected_result
  
imports: import json
  import os
  from copy import deepcopy
  from typing import Dict, List
  from urllib.parse import urlparse
  from urllib.request import url2pathname
  import dpath
  import pytest
  from bs4 import BeautifulSoup
  from funcy import first
  from dvc.cli import main
  from dvc.render import ANCHOR_DEFINITIONS, FILENAME, REVISION
label_desc: Use image node_id 11 for calling a global function with example usage: test_repo_with_removed_plots(tmp_dir, capsys, repo_with_plots) without return types