code: def test_hide_missing(mocker, capsys, dvc):
      args = parse_args(["diff", "--hide-missing"])
      cmd = args.func(args)
      diff = {
          "added": [{"path": "file", "hash": "00000000"}],
          "deleted": [],
          "modified": [],
          "renamed": [
              {
                  "path": {"old": "file_old", "new": "file_new"},
                  "hash": "11111111",
              }
          ],
          "not in cache": [],
      }
      mocker.patch("dvc.repo.Repo.diff", return_value=diff)
  
      assert cmd.run() == 0
      out, _ = capsys.readouterr()
      assert (
          "Added:\n"
          "    file\n"
          "\n"
          "Renamed:\n"
          "    file_old -> file_new\n"
          "\n"
          "files summary: 1 added, 1 renamed" in out
      )
      assert "not in cache" not in out
  
file_path: dvc/tests/unit/command/test_diff.py
imports: import collections
  import os
  import pytest
  from dvc.cli import parse_args
  from dvc.commands.diff import _digest, _show_markdown
label_desc: Use image node_id 12 for calling a global function with example usage: test_hide_missing(mocker, capsys, dvc) without return types