code: def _setexpr_apply_operation(op, x, y):
      if isinstance(x, SetExpr):
          x = x.set
      if isinstance(y, SetExpr):
          y = y.set
      out = op(x, y)
      return SetExpr(out)
  
imports: from sympy.core import Expr
  from sympy.core.decorators import call_highest_priority, _sympifyit
  from .fancysets import ImageSet
  from .sets import set_add, set_sub, set_mul, set_div, set_pow, set_function
label_desc: Use image node_id 1 for calling a global function with example usage: _setexpr_apply_operation(op, x, y) and returns: SetExpr