code: def extract_answer(completion):
      match = ANS_RE.search(completion)
      if match:
          match_str = match.group(1).strip()
          match_str = match_str.replace(",", "")
          return match_str
      else:
          return INVALID_ANS
  
file_path: grade-school-math/grade_school_math/dataset.py
imports: import json
  import os
  import re
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: extract_answer(completion) and returns: match_str, INVALID_ANS