code: def make_api_call_machine(
      round_idx, episode_idx=0, use_broken_mock_api_calls=False
  ):
      if round_idx == 0:
          return {}
      if use_broken_mock_api_calls:
          # Hack as a way to test metrics reporting in tod world script
          if turn_has_broken_api_call(round_idx, episode_idx):
              round_idx = -1 * round_idx
      return {
          tod_core.STANDARD_API_NAME_SLOT: f"name_{round_idx}",
          "in": round_idx,
      }
  
imports: import parlai.core.tod.tod_agents
  import parlai.core.tod.tod_core
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: make_api_call_machine(round_idx, episode_idx, use_broken_mock_api_calls) and returns: dict, dict