code: def _fix_a_slash_b(string):
      if len(string.split("/")) != 2:
          return string
      a = string.split("/")[0]
      b = string.split("/")[1]
      try:
          a = int(a)
          b = int(b)
          assert string == "{}/{}".format(a, b)
          new_string = "\\frac{" + str(a) + "}{" + str(b) + "}"
          return new_string
      except:
          return string
  
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 2 for calling a global function with example usage: _fix_a_slash_b(string) and returns: string, new_string, string