code: def remove_boxed(string: str) -> Optional[str]:
      """Source: https://github.com/hendrycks/math
      Extract the text within a \\boxed{...} environment.
      Example:
  
      > remove_boxed("\\boxed{\\frac{2}{3}}")
  
      \\frac{2}{3}
      """
      left = "\\boxed{"
      try:
          if not all((string[: len(left)] == left, string[-1] == "}")):
              raise AssertionError
  
          return string[len(left) : -1]
      except Exception:
          return None
  
file_path: autogen/autogen/math_utils.py
imports: from typing import Optional
  from autogen import oai, DEFAULT_MODEL
label_desc: Use image node_id 2 for calling a global function with example usage: remove_boxed(string) and returns: string, None