code: def test_print_status(runner, mock_server, capsys):
      c = wandb.controller("test", entity="test", project="test")
      c.print_status()
      stdout, stderr = capsys.readouterr()
      assert (
          stdout
          == "Sweep: fun-sweep-10 (random) | Runs: 1 (Running: 1)\n"
      )
      # For some reason, the windows and mac tests are failing in CI
      # as there are write permissions warnings.
      try:
          assert (
              stderr == ""
          ), "stderr should be empty, but got warnings"
      except AssertionError:
          pass
  
file_path: wandb/tests/pytest_tests/unit_tests_old/test_launch/test_wandb_controller.py
imports: import platform
  import sys
  import pytest
  import sweeps
  import wandb
label_desc: Use image node_id 2 for calling a global function with example usage: test_print_status(runner, mock_server, capsys) without return types