code: def math_equivalence(prediction, reference, **kwargs):
      prediction = parse_math_answer(prediction)
  
      if prediction is None and reference is None:
          print("WARNING: Both None")
          return False
  
      if prediction is None or reference is None:
          return False
  
      try:
          ss1 = _strip_string(prediction)
          ss2 = _strip_string(reference)
          return ss1 == ss2
      except:
          return prediction == reference
  
imports: import difflib
  import re
  import string
  from collections import Counter
  import jieba
  from fuzzywuzzy import fuzz
  from rouge import Rouge
label_desc: Use image node_id 7 for calling a global function with example usage: math_equivalence(prediction, reference) and returns: False, False, unknown, unknown