code: def test_add_constant_delta():
      z = Tensor(randn(2))["z"]
      c = Constant(OrderedDict(x=Bint[3], y=Real), z)
  
      point1 = Number(5.0)
      d1 = Delta("y", point1)
      assert c + d1 is c(y=point1) + d1
      assert d1 + c is d1 + c(y=point1)
  
      point2 = Tensor(randn(2))["z"]
      d2 = Delta("y", point2)
      assert c + d2 is c(y=point2) + d2
      assert d2 + c is d2 + c(y=point2)
  
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 6 for calling a global function with example usage: test_add_constant_delta() without return types