code: def test_cli(dvc, mocker, mocked_status):
      status = mocker.patch(
          "dvc.repo.Repo.data_status", return_value=mocked_status
      )
  
      cli_args = parse_args(
          [
              "data",
              "status",
              "--json",
              "--unchanged",
              "--untracked-files",
              "--granular",
          ]
      )
  
      assert cli_args.func == CmdDataStatus
      cmd = cli_args.func(cli_args)
      assert cmd.run() == 0
      status.assert_called_once_with(
          untracked_files="all",
          not_in_remote=False,
          remote_refresh=True,
          granular=True,
      )
  
file_path: dvc/tests/unit/command/test_data_status.py
imports: import json
  import pytest
  from funcy import omit
  from dvc.cli import main, parse_args
  from dvc.commands.data import CmdDataStatus
  from dvc.repo import Repo
  from dvc.repo.data import Status
  from tests.func.parsing.test_errors import escape_ansi
label_desc: Use image node_id 2 for calling a global function with example usage: test_cli(dvc, mocker, mocked_status) without return types