code: def test_add_constant_funsor():
      x = Tensor(randn(3))["x"]
      z = Tensor(randn(2))["z"]
      c = Constant(OrderedDict(x=Bint[3], y=Real), z)
  
      result = c + x  # Constant(OrderedDict(y=Real), z + x)
      assert result.const_inputs == OrderedDict(y=Real)
      assert_close(result.arg, c.arg + x)
  
      result = x + c  # Constant(OrderedDict(y=Real), x + z)
      assert result.const_inputs == OrderedDict(y=Real)
      assert_close(result.arg, x + c.arg)
  
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 5 for calling a global function with example usage: test_add_constant_funsor() without return types