code: def remove_right_units(self, 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 inspect
  import lm_eval.datasets.hendrycks_math.hendrycks_math
  from lm_eval.metrics import mean
  from lm_eval.base import Task, rf
label_desc: Use image node_id 21 for calling the Math obj's underlying member method code with example usage: obj.remove_right_units(string) and returns: splits, string