code: def test_eager_subs_ground():
      data = Tensor(randn(3))
      c = Constant(OrderedDict(x=Bint[3], y=Real), data)
      t = Tensor(randn(2))["a"]
      assert c(x=0) is Constant(OrderedDict(y=Real), data)
      assert c(y=t) is Constant(OrderedDict(x=Bint[3], a=Bint[2]), data)
      assert c(x=0, y=1) is data
  
file_path: funsor/test/test_constant.py
imports: from collections import OrderedDict
  import funsor.ops
  from funsor.constant import Constant
  from funsor.delta import Delta
  from funsor.domains import Bint, Real
  from funsor.tensor import Tensor
  from funsor.terms import Number, Variable, to_data, to_funsor
  from funsor.testing import assert_close, randn, requires_backend
label_desc: Use image node_id 2 for calling a global function with example usage: test_eager_subs_ground() without return types