docstr: Change formatting.
  
  Returns list of steps in reasoning chain.
docstr_tok: ["Change","formatting",".","Returns","list","of","steps","in","reasoning","chain","."]
code: def parse_chain(self, chain: str, type: str) -> List[str]:
      """
      Change formatting.
  
      Returns list of steps in reasoning chain.
      """
      if type == "gsm8k_ref":
          return chain.split(
              "IGNORE THIS. Ground truth here for reference. "
          )[1].split("\n")
      elif type == "gsm8k_hypo":
          return split_gsm8k_gpt3_generations_to_steps(reasoning=chain)
      elif type == "regular":
          return sent_tokenize(chain)
      else:
          raise NotImplementedError(
              f"{type} chain type is not supported"
          )
  
file_path: ParlAI/projects/roscoe/roscoe.py
imports: import json
  import os
  from typing import List
  from nltk.tokenize import sent_tokenize
  from projects.roscoe.score import SEQ_EMB_MODEL_TYPES, Chain, Evaluator, REASONING_SCORES, UNSUPERVISED_SCORES, SENT_TRANS
  from projects.roscoe.utils import print_and_reset_max_gpu_memory, save_scores, split_gsm8k_gpt3_generations_to_steps
  from parlai.core.params import ParlaiParser
label_desc: Use image node_id 2 for calling the ReasoningSteps obj's underlying member method code with example usage: obj.parse_chain(chain, type) and returns: chain, split_gsm8k_gpt3_generations_to_steps, sent_tokenize