code: def test_status_show_json(dvc, mocker, capsys, status):
      cli_args = parse_args(["status", "--json"])
      assert cli_args.func == CmdDataStatus
  
      cmd = cli_args.func(cli_args)
  
      mocker.patch.object(
          cmd.repo, "status", autospec=True, return_value=status
      )
  
      assert cmd.run() == 0
      out, _ = capsys.readouterr()
      assert json.dumps(status) in out
  
file_path: dvc/tests/unit/command/test_status.py
imports: import json
  import pytest
  from dvc.cli import parse_args
  from dvc.commands.status import CmdDataStatus
label_desc: Use image node_id 2 for calling a global function with example usage: test_status_show_json(dvc, mocker, capsys, status) without return types