class_docstr: Data Processor for SGD dialogues.
  
  More information at https://arxiv.org/abs/1909.05855
  
  ***Downloading the dataset***
      #   git clone https://github.com/google-research-datasets/dstc8-schema-guided-dialogue.git
  
  ***Data format***
  SGD data comes with a JSON schema file and dialogue files for each dataset split. 
  
  In the following we will show an example for a service entry in the schema file.
  * service_name
  * description
  * slots
      * name
      * description
      * is_categorical
      * possible values
  * intents
      * name
      * description
      * required_slots (not used)
      * is_transactional (not used)
      * optional_slots (not used)
      * result_slots (not used)
  
  
  In the following we will show an example for a dialogue. 
  * dialogue_id
  * services
  * turns
      * frames
          * actions
              * act
              * slot
              * values
          * service
          * slots
              * exclusive_end
              * slot
              * start
          * state
              * active_intent
              * requeste_slots
              * slot_values 
      * speaker - [USER, SYSTEM]
      * utterance
docstr: Loads preprocessed dialogue examples from disk. 
  Args:
      dataset_split: dataset split
  Returns:
      dial_examples:  list of InputExample's.
docstr_tok: ["Loads","preprocessed","dialogue","examples","from","disk",".","Args",":","dataset_split",":","dataset","split","Returns",":","dial_examples",":","list","of","InputExample","'s","."]
code: def get_dialog_examples(self, dataset_split: str) -> List[object]:
      """
      Loads preprocessed dialogue examples from disk.
      Args:
          dataset_split: dataset split
      Returns:
          dial_examples:  list of InputExample's.
      """
      if (
          self._task_name,
          dataset_split,
      ) not in self.dial_files or not os.path.exists(
          self.dial_files[(self._task_name, dataset_split)]
      ):
          raise ValueError(
              f"{dataset_split} dialogue examples were not processed for {self._task_name} task. Re-initialize SGDDataProcessor and add {dataset_split} dataset split to datasets arg."
          )
      dial_file = self.dial_files[(self._task_name, dataset_split)]
      logging.info(f"Loading dialogue examples from {dial_file}.")
  
      with open(dial_file, "rb") as f:
          dial_examples = json.load(f)
          dial_examples = [
              DialogueInputExample(i) for i in dial_examples
          ]
      if not os.path.exists(self.slots_relation_file):
          raise ValueError(
              f"Slots relation file {self.slots_relation_file} does not exist. It is needed for the carry-over mechanism of state tracker for switches between services."
          )
      if os.path.getsize(self.slots_relation_file) > 0:
          with open(self.slots_relation_file, "rb") as f:
              self.schemas._slots_relation_list = pickle.load(f)
          logging.info(
              f"Loaded the slot relation list for value carry-over between services from {self.slots_relation_file}."
          )
  
      return dial_examples
  
imports: import collections
  import json
  import os
  import pickle
  import re
  from typing import List
  from nemo.collections.nlp.data.dialogue.data_processor.data_processor import DialogueDataProcessor
  from nemo.collections.nlp.data.dialogue.input_example.input_example import DialogueInputExample
  from nemo.collections.nlp.data.dialogue.sgd.schema import Schema
  from nemo.utils import logging
  from nemo.utils.get_rank import is_global_rank_zero
label_desc: Use image node_id 7 for calling the DialogueSGDDataProcessor obj's underlying member method code with example usage: obj.get_dialog_examples(dataset_split) and returns: dial_examples