class_docstr: This Teacher is responsible for performing the task of Dialogue State Tracking. It
  can be used to evaluate LM on JGA (Joint Goal Accuracy) metric (as shown in.
  
  [SimpleTOD](https://arxiv.org/abs/2005.00796) and
  [Soloist](https://arxiv.org/abs/2005.05298)).
class_docstr_tok: ["This","Teacher","is","responsible","for","performing","the","task","of","Dialogue","State","Tracking",".","It","can","be","used","to","evaluate","LM","on","JGA","(","Joint","Goal","Accuracy",")","metric","(","as","shown","in",".","[","SimpleTOD","]","(","https",":","\/\/arxiv.org\/abs\/2005.00796",")","and","[","Soloist","]","(","https",":","\/\/arxiv.org\/abs\/2005.05298",")",")","."]
code: def setup_data(self, fold):
      schema_lookup, dialogues = self._load_data(fold)
      for dialogue in dialogues:
          turns = dialogue["turns"]
          context = []
          for turn_id in range(0, len(turns), 2):
              frames = turns[turn_id]["frames"]
              user_utterance = turns[turn_id]["utterance"]
              sys_utterance = turns[turn_id + 1]["utterance"]
              context.append(
                  f"<user> {user_utterance} <system> {sys_utterance}"
              )
  
              for frame in frames:
                  slot_values = frame["state"]["slot_values"]
  
                  label = self.SLOT_ENTRY_SEPARATOR.join(
                      [
                          f"{slot_name} {slot_val[0]}"
                          for slot_name, slot_val in slot_values.items()
                      ]
                  )
  
                  yield {
                      "text": " ".join(context),
                      "label": label,
                      "slots": slot_values,
                      "type": "text",
                      "service": schema_lookup[frame["service"]],
                  }, True
  
imports: import glob
  import json
  import os
  from typing import Any, Dict, List, Optional
  import parlai.tasks.google_sgd.build
  import parlai.core.tod.tod_core
  import parlai.core.tod.tod_agents
  from parlai.core.tod.tod_core import SerializationHelpers
  from parlai.core.message import Message
  from parlai.core.metrics import AverageMetric
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from fuzzywuzzy import fuzz
  from parlai.utils.io import PathManager
label_desc: Use image node_id 4 for calling the GoogleSGDDSTTeacher obj's underlying member method code with example usage: obj.setup_data(fold) without return types