code: def is_equiv(str1: Optional[str], str2: Optional[str]) -> float:
      """Returns (as a float) whether two strings containing math are equivalent up to differences of formatting in
      - units
      - fractions
      - square roots
      - superfluous LaTeX.
      Source: https://github.com/hendrycks/math
      """
      if str1 is None and str2 is None:
          print("WARNING: Both None")
          return 1.0
      if str1 is None or str2 is None:
          return 0.0
  
      try:
          ss1 = _strip_string(str1)
          ss2 = _strip_string(str2)
          return float(ss1 == ss2)
      except Exception:
          return float(str1 == str2)
  
file_path: autogen/autogen/math_utils.py
imports: from typing import Optional
  from autogen import oai, DEFAULT_MODEL
label_desc: Use image node_id 10 for calling a global function with example usage: is_equiv(str1, str2) and returns: int, int, float, float