code: def _process_doc(self, doc):
      answer_idx = ["a", "b", "c", "d", "e"].index(doc["correct"])
      choices = [
          c[4:].rstrip(" ,")
          for c in re.findall(
              r"[abcd] \) .*?, |e \) .*?$", doc["options"]
          )
      ]
  
      out_doc = {
          "query": "Question: " + doc["Problem"] + "\nAnswer:",
          "choices": choices,
          "gold": answer_idx,
      }
      return out_doc
  
file_path: lm-evaluation-harness/lm_eval/tasks/mathqa.py
imports: import re
  from lm_eval.base import MultipleChoiceTask
label_desc: Use image node_id 7 for calling the MathQA obj's underlying member method code with example usage: obj._process_doc(doc) and returns: out_doc