code: def _remove_right_units(string):
      # "\\text{ " only ever occurs (at least in the val set) when describing units
      if "\\text{ " in string:
          splits = string.split("\\text{ ")
          assert len(splits) == 2
          return splits[0]
      else:
          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 3 for calling a global function with example usage: _remove_right_units(string) and returns: splits, string