code: def test_log_prob_support(dist, values):
      if values is None:
          values = dist.enumerate_support()
      log_probs = dist.log_prob(values)
      assert_close(log_probs.logsumexp(0), torch.tensor(0.0), atol=0.01)
  
file_path: pyro/tests/distributions/test_conjugate.py
imports: import math
  import pytest
  import torch
  import pyro.distributions
  from pyro.distributions import BetaBinomial, DirichletMultinomial, GammaPoisson
  from tests.common import assert_close
label_desc: Use image node_id 3 for calling a global function with example usage: test_log_prob_support(dist, values) without return types