code: def eager_binary_constant_constant(op, lhs, rhs):
      const_vars = (
          (lhs.const_vars | rhs.const_vars)
          - lhs.arg.input_vars
          - rhs.arg.input_vars
      )
      const_inputs = OrderedDict((v.name, v.output) for v in const_vars)
      if const_inputs:
          return Constant(const_inputs, op(lhs.arg, rhs.arg))
      return op(lhs.arg, rhs.arg)
  
file_path: funsor/funsor/constant.py
imports: from collections import OrderedDict
  from functools import reduce
  import funsor.ops
  from funsor.tensor import Tensor
  from funsor.terms import Binary, Funsor, FunsorMeta, Number, Reduce, Unary, Variable, eager
label_desc: Use image node_id 2 for calling a global function with example usage: eager_binary_constant_constant(op, lhs, rhs) and returns: op, Constant