code: def load_synthetic_datas(cls, dataset) -> Dict[str, List[Example]]:
      dataset_path_name = dataset
      if dataset == "math":
          dataset_path_name = "math_dataset"
  
      def parse_to_example(
          line,
      ):
          jline = json.loads(line)
          # This should be aligned with what is in synthetic_scorer.py
          h_chain = SyntheticChain(line=jline["dialog"][0][0]["steps"])
          r_chain = SyntheticChain(
              line=jline["dialog"][0][0]["original_steps"]
          )
          context = SyntheticChain(
              line=jline["dialog"][0][0]["question"].split(". ")
          )
          return Example(
              " ".join(context.chain),
              " ".join(h_chain.chain),
              " ".join(r_chain.chain),
          )
  
      result = {}
      for f_name in glob.glob(
          SYNTHETIC_PATH
          + f"{dataset_path_name}_synthetic/50*test.jsonl"
      ):
          seen_ps = 0
          for p in PERTURBATIONS:
              if p in f_name:
                  seen_ps += 1
          if seen_ps != 1:
              continue
          print("Synthetic data filename:", f_name)
          with open(f_name) as f:
              raw = f.readlines()
          result[
              dataset
              + "_"
              + f_name.split("/")[-1].replace(".jsonl", "_scores")
          ] = [parse_to_example(x) for x in raw]
      return result
  
file_path: ParlAI/projects/roscoe/baselines/run.py
imports: import argparse
  import glob
  import os
  from typing import Dict, List
  import pandas
  import json
  from projects.roscoe.utils import split_gsm8k_gpt3_generations_to_steps
  from projects.roscoe.synthetic_evaluation.synthetic_roscoe import SyntheticChain
  from projects.roscoe.baselines.constants import Example, UseRef, BASELINE_SCORES, INPUT_DATA_SYNTHETIC, INPUT_DATA_FILES_HUMAN, INPUT_DATA_HUMAN, ALL_DATASETS, PERTURBATIONS
  from projects.roscoe.baselines.scores import SCORES_TO_CLASS
  from nltk import sent_tokenize
label_desc: Use image node_id 2 for calling the BaselineDataLoader obj's underlying member method code with example usage: obj.load_synthetic_datas(cls, dataset) and returns: result, Example