code: def parse_expr(s, local_dict):
      """
      Converts the string "s" to a SymPy expression, in local_dict.
  
      It converts all numbers to Integers before feeding it to Python and
      automatically creates Symbols.
      """
      global_dict = {}
      exec("from sympy import *", global_dict)
      try:
          a = parse(s.strip(), mode="eval")
      except SyntaxError:
          raise SympifyError("Cannot parse %s." % repr(s))
      a = Transform(local_dict, global_dict).visit(a)
      e = compile(a, "<string>", "eval")
      return eval(e, global_dict, local_dict)
  
file_path: sympy/sympy/parsing/ast_parser.py
imports: from sympy.core.basic import Basic
  from sympy.core.sympify import SympifyError
  from ast import parse, NodeTransformer, Call, Name, Load, fix_missing_locations, Constant, Tuple
label_desc: Use image node_id 1 for calling a global function with example usage: parse_expr(s, local_dict) and returns: eval