code: def list_free_agents() -> List[bindings.v1Agent]:
      agents = bindings.get_GetAgents(
          api_utils.determined_test_session()
      )
      if not agents.agents:
          pytest.fail(f"missing agents: {agents}")
  
      return [
          a for a in agents.agents or [] if len(a.containers or {}) == 0
      ]
  
file_path: determined/e2e_tests/tests/cluster/test_resource_manager.py
imports: import os
  import shutil
  import tempfile
  import time
  from typing import List
  import pytest
  from determined.common import util
  from determined.common.api import bindings
  from determined.common.api.bindings import experimentv1State
  from tests import api_utils
  from tests import config
  from tests import experiment
  from .test_agent_disable import _wait_for_slots
label_desc: Use image node_id 2 for calling a global function with example usage: list_free_agents() and returns: unknown