code: def test_eager_subs_ground(log_density):
      point1 = Tensor(randn(3))
      point2 = Tensor(randn(3))
      d = Delta("foo", point1, log_density)
      check_funsor(
          d(foo=point1), {}, Real, numeric_array(float(log_density))
      )
      check_funsor(
          d(foo=point2), {}, Real, numeric_array(float("-inf"))
      )
  
file_path: funsor/test/test_delta.py
imports: import pytest
  import funsor.ops
  from funsor.delta import Delta
  from funsor.domains import Real, Reals
  from funsor.tensor import Tensor, numeric_array
  from funsor.terms import Number, Variable
  from funsor.testing import assert_close, check_funsor, randn
label_desc: Use image node_id 2 for calling a global function with example usage: test_eager_subs_ground(log_density) without return types