code: def convertToFloat(s, loc, toks):
      try:
          return float(toks[0])
      except BaseException as e:
          raise ParseException(
              loc, "invalid float format %s" % toks[0]
          ) from e
  
file_path: scikit-learn/doc/tutorial/machine_learning_map/parse_path.py
label_desc: Use image node_id 4 for calling a global function with example usage: convertToFloat(s, loc, toks) and returns: float