code: def test_default(mocker, capsys, dvc):
      args = parse_args(["diff"])
      cmd = args.func(args)
      diff = {
          "added": [{"path": "file", "hash": "00000000"}],
          "deleted": [],
          "modified": [],
          "renamed": [
              {
                  "path": {
                      "old": os.path.join("data", "file_old"),
                      "new": os.path.join("data", "file_new"),
                  },
                  "hash": "11111111",
              }
          ],
          "not in cache": [],
      }
      mocker.patch("dvc.repo.Repo.diff", return_value=diff)
  
      assert cmd.run() == 0
      assert (
          "Added:\n"
          "    file\n"
          "\n"
          "Renamed:\n"
          f"    data{os.path.sep}file_old -> data{os.path.sep}file_new\n"
          "\n"
          "files summary: 1 added, 1 renamed"
      ) in capsys.readouterr()[0]
  
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 2 for calling a global function with example usage: test_default(mocker, capsys, dvc) without return types