code: def test_kl_delta_normal_shape(batch_shape):
      v = torch.randn(batch_shape)
      loc = torch.randn(batch_shape)
      scale = torch.randn(batch_shape).exp()
      p = dist.Delta(v)
      q = dist.Normal(loc, scale)
      assert kl_divergence(p, q).shape == batch_shape
  
file_path: pyro/tests/distributions/test_kl.py
imports: import pytest
  import torch
  from torch.distributions import kl_divergence, transforms
  import pyro.distributions
  from pyro.distributions.util import sum_rightmost
  from tests.common import assert_close
label_desc: Use image node_id 1 for calling a global function with example usage: test_kl_delta_normal_shape(batch_shape) without return types