class_docstr: Abstract data loader.
class_docstr_tok: ["Abstract","data","loader","."]
docstr: NOTE: Format of ontology in this is different from TM2 + TM3. Need to figure out which is relevant for the domain.
code: def _parse_to_api_schema(self, raw):
      """
      NOTE: Format of ontology in this is different from TM2 + TM3. Need to figure out which is relevant for the domain.
      """
      result = {}
      for key, val in raw.items():
          here = {}
          here[tod.STANDARD_API_NAME_SLOT] = val["id"]
          here[tod.STANDARD_REQUIRED_KEY] = val.get("required", [])
          here[tod.STANDARD_OPTIONAL_KEY] = val.get("optional", [])
          result[key] = here
      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
  from typing import Optional
  from parlai.utils.data import DatatypeHelper
  from parlai.utils.io import PathManager
  import parlai.tasks.taskmaster.build
  import parlai.core.tod.tod_agents
  from parlai.core.teachers import FixedDialogTeacher
  from .None import tm_utils
  import json
label_desc: Use image node_id 6 for calling the Taskmaster1Parser obj's underlying member method code with example usage: obj._parse_to_api_schema(raw) and returns: result