code: def test_slots_list_command(
      managed_cluster_priority_scheduler: ManagedCluster,
  ) -> None:
      managed_cluster_priority_scheduler.ensure_agent_ok()
      assert str(conf.MASTER_PORT) == "8082"
      command = ["det", "-m", conf.make_master_url(), "slot", "list"]
      completed_process = subprocess.run(
          command,
          universal_newlines=True,
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
      )
  
      assert (
          completed_process.returncode == 0
      ), "\nstdout:\n{} \nstderr:\n{}".format(
          completed_process.stdout, completed_process.stderr
      )
  
file_path: determined/e2e_tests/tests/cluster/test_priority_scheduler.py
imports: import subprocess
  import pytest
  from tests import config
  from tests import experiment
  from .managed_cluster import ManagedCluster
  from .utils import assert_command_succeeded, run_command, run_command_set_priority, wait_for_command_state
label_desc: Use image node_id 3 for calling a global function with example usage: test_slots_list_command(managed_cluster_priority_scheduler) without return types