class_docstr: Assume that when we init, we init w/ num of episodes + rounds as opts.
class_docstr_tok: ["Assume","that","when","we","init",",","we","init","w\/","num","of","episodes","+","rounds","as","opts","."]
code: def setup_episodes(self, _):
      result = []
      for ep_idx in range(0, self.opt[TEST_NUM_EPISODES_OPT_KEY]):
          result.append(
              tod_core.TodStructuredEpisode(
                  goal_calls_machine=[
                      make_api_call_machine(x)
                      for x in range(
                          1, self.opt[TEST_NUM_ROUNDS_OPT_KEY]
                      )
                  ],
                  api_schemas_machine=make_api_schemas_machine(
                      self.opt[TEST_NUM_ROUNDS_OPT_KEY]
                  ),
                  rounds=get_rounds(
                      ep_idx,
                      self.opt[TEST_NUM_ROUNDS_OPT_KEY],
                      self.opt.get("use_broken_mock_api_calls", False),
                  ),
              )
          )
      return result
  
imports: import parlai.core.tod.tod_agents
  import parlai.core.tod.tod_core
  import os
label_desc: Use image node_id 2 for calling the TestDataParser obj's underlying member method code with example usage: obj.setup_episodes(_) and returns: result