code: def test_status_empty(dvc, mocker, capsys):
      from dvc.repo.index import Index
  
      cli_args = parse_args(["status"])
      assert cli_args.func == CmdDataStatus
  
      cmd = cli_args.func(cli_args)
  
      spy = mocker.spy(Index, "from_repo")
  
      assert cmd.run() == 0
  
      captured = capsys.readouterr()
      assert "no data or pipelines tracked" in captured.out
      # stages should only be collected once
      assert spy.call_count == 1
  
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 4 for calling a global function with example usage: test_status_empty(dvc, mocker, capsys) without return types