code: def eval(expression, _dict={}, **kw):
      """
      Evaluates an image expression.
  
      :param expression: A string containing a Python-style expression.
      :param options: Values to add to the evaluation context.  You
                      can either use a dictionary, or one or more keyword
                      arguments.
      :return: The evaluated expression. This is usually an image object, but can
               also be an integer, a floating point value, or a pixel tuple,
               depending on the expression.
      """
  
      # build execution namespace
      args = ops.copy()
      args.update(_dict)
      args.update(kw)
      for k, v in list(args.items()):
          if hasattr(v, "im"):
              args[k] = _Operand(v)
  
      compiled_code = compile(expression, "<string>", "eval")
  
      def scan(code):
          for const in code.co_consts:
              if type(const) is type(compiled_code):
                  scan(const)
  
          for name in code.co_names:
              if name not in args and name != "abs":
                  msg = f"'{name}' not allowed"
                  raise ValueError(msg)
  
      scan(compiled_code)
      out = builtins.eval(
          expression, {"__builtins": {"abs": abs}}, args
      )
      try:
          return out.im
      except AttributeError:
          return out
  
imports: import builtins
  from .None import Image, _imagingmath
label_desc: Use image node_id 9 for calling a global function with example usage: eval(expression, _dict) and returns: out, out