code: def test_show_markdown_hide_missing(capsys):
      diff = {
          "deleted": [
              {"path": "zoo"},
              {"path": os.path.join("data", "")},
              {"path": os.path.join("data", "foo")},
              {"path": os.path.join("data", "bar")},
          ],
          "modified": [{"path": "file"}],
          "added": [{"path": "file"}],
          "renamed": [{"path": {"old": "file_old", "new": "file_new"}}],
          "not in cache": [{"path": "file2"}],
      }
  
      _show_markdown(diff, hide_missing=True)
  
      out, _ = capsys.readouterr()
      assert out == (
          "| Status   | Path                 |\n"
          "|----------|----------------------|\n"
          "| added    | file                 |\n"
          "| deleted  | zoo                  |\n"
          f"| deleted  | data{os.path.sep}                |\n"
          f"| deleted  | data{os.path.sep}foo             |\n"
          f"| deleted  | data{os.path.sep}bar             |\n"
          "| renamed  | file_old -> file_new |\n"
          "| modified | file                 |\n"
          "\n"
      )
  
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 11 for calling a global function with example usage: test_show_markdown_hide_missing(capsys) without return types