code: def random_gamma(batch_shape):
      """
      Generate a random Gamma distribution for testing.
      """
      concentration = torch.randn(batch_shape).exp()
      rate = torch.randn(batch_shape).exp()
      return dist.Gamma(concentration, rate)
  
imports: import torch
  import pyro.distributions
  from pyro.ops.gamma_gaussian import GammaGaussian
  from tests.common import assert_close
label_desc: Use image node_id 2 for calling a global function with example usage: random_gamma(batch_shape) and returns: dist