code: def get_round_utts(episode_idx, max_rounds, filter_utts=None):
      if max_rounds < 1:
          return []
      utts = [
          [
              f"{tod_core.STANDARD_USER_UTTERANCE}user_utt_{episode_idx}_0",
              tod_core.STANDARD_CALL,
              tod_core.STANDARD_RESP,
              f"{tod_core.STANDARD_SYSTEM_UTTERANCE}sys_utt_{episode_idx}_0",
          ]
      ]
      for i in range(1, max_rounds):
          utts.append(
              [
                  f"{tod_core.STANDARD_USER_UTTERANCE}user_utt_{episode_idx}_{i}",
                  f"{tod_core.STANDARD_CALL}api_name = name_{i} ; in = {i}",
                  f"{tod_core.STANDARD_RESP}out = {i}",
                  f"{tod_core.STANDARD_SYSTEM_UTTERANCE}sys_utt_{episode_idx}_{i}",
              ]
          )
      utts.append(
          [
              f"{tod_core.STANDARD_USER_UTTERANCE}{tod_core.STANDARD_DONE}",
              tod_core.STANDARD_CALL,
              tod_core.STANDARD_RESP,
              tod_core.STANDARD_SYSTEM_UTTERANCE,
          ]
      )
      if filter_utts is not None:
          utts = [
              [
                  turn
                  for i, turn in enumerate(round_data)
                  if filter_utts[i]
              ]
              for round_data in utts
          ]
      return utts
  
imports: import parlai.core.tod.tod_agents
  import parlai.core.tod.tod_core
  import os
label_desc: Use image node_id 8 for calling a global function with example usage: get_round_utts(episode_idx, max_rounds, filter_utts) and returns: utts, list