code: def convert_unary(unary):
      if hasattr(unary, "unary"):
          nested_unary = unary.unary()
      else:
          nested_unary = unary.unary_nofunc()
      if hasattr(unary, "postfix_nofunc"):
          first = unary.postfix()
          tail = unary.postfix_nofunc()
          postfix = [first] + tail
      else:
          postfix = unary.postfix()
  
      if unary.ADD():
          return convert_unary(nested_unary)
      elif unary.SUB():
          numabs = convert_unary(nested_unary)
          # Use Integer(-n) instead of Mul(-1, n)
          return -numabs
      elif postfix:
          return convert_postfix_list(postfix)
  
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 6 for calling a global function with example usage: convert_unary(unary) and returns: convert_unary, unknown, convert_postfix_list