def eval(expression, _dict={}, **kw):
 args = ops.copy()
 args.update(_dict)
 args.update(kw)
 for (k, v) in list(args.items()):
  if hasattr(v, 'im'):
   args[k] = _Operand(v)
 out = builtins.eval(expression, args)
 try:
  return out.im
 except AttributeError:
  return out

def eval ( expression , _dict = { } , ** kw ) : args = ops . copy ( ) args . update ( _dict ) args . update ( kw ) for ( k , v ) in list ( args . items ( ) ) : if hasattr ( v , 'im' ) : args [ k ] = _Operand ( v ) out = builtins . eval ( expression , args ) try : return out . im except AttributeError : return out
evaluates an image expression .