class_docstr: Abstract data loader.
class_docstr_tok: ["Abstract","data","loader","."]
code: def _get_turns_from_parsed(
      self, user_utt, api_calls, api_resps, sys_utt
  ):
      assert len(api_calls) == len(api_resps)
      if len(api_calls) == 0:
          api_calls = [{}]
          api_resps = [{}]
      turns = len(api_calls)
      user_utts = [SILENCE_TOKEN] * turns
      user_utts[0] = user_utt
      sys_utts = [SILENCE_TOKEN] * turns
      sys_utts[turns - 1] = sys_utt
  
      result = []
      for i in range(turns):
          result.append(
              tod.TodStructuredRound(
                  sys_utt=sys_utts[i],
                  api_call_machine=api_calls[i],
                  api_resp_machine=api_resps[i],
                  user_utt=user_utts[i],
              )
          )
      return result
  
imports: from parlai.core.params import ParlaiParser
  import os
  import pandas
  from parlai.core.opt import Opt
  import parlai.core.tod.tod_core
  import json
  from typing import Optional
  from parlai.utils.data import DatatypeHelper
  from parlai.utils.io import PathManager
  import parlai.tasks.taskmaster3.build
  import parlai.core.tod.tod_agents
label_desc: Use image node_id 7 for calling the Taskmaster3Parser obj's underlying member method code with example usage: obj._get_turns_from_parsed(user_utt, api_calls, api_resps, sys_utt) and returns: result