code: def handle_limit(func):
      sub = func.limit_sub()
      if sub.LETTER():
          var = sympy.Symbol(sub.LETTER().getText())
      elif sub.SYMBOL():
          var = sympy.Symbol(sub.SYMBOL().getText()[1:])
      else:
          var = sympy.Symbol("x")
      if sub.SUB():
          direction = "-"
      elif sub.ADD():
          direction = "+"
      else:
          direction = "+-"
      approaching = convert_expr(sub.expr())
      content = convert_mp(func.mp())
  
      return sympy.Limit(content, var, approaching, direction)
  
imports: from importlib.metadata import version
  import sympy
  from sympy.external import import_module
  from sympy.printing.str import StrPrinter
  from sympy.physics.quantum.state import Bra, Ket
  from .errors import LaTeXParsingError
label_desc: Use image node_id 22 for calling a global function with example usage: handle_limit(func) and returns: sympy