code: def eager_binary_tensor_constant(op, lhs, rhs):
      const_inputs = OrderedDict(
          (k, v)
          for k, v in rhs.const_inputs.items()
          if k not in lhs.inputs
      )
      if const_inputs:
          return Constant(const_inputs, op(lhs, rhs.arg))
      return op(lhs, 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 4 for calling a global function with example usage: eager_binary_tensor_constant(op, lhs, rhs) and returns: op, Constant