code: def _reshape_batch_univariate(d, batch_shape):
      batch_shape = batch_shape + (-1,) * d.event_dim
      params = {
          name: getattr(d, name).reshape(batch_shape)
          for name in UNIVARIATE_DISTS[type(d)]
      }
      return type(d)(**params)
  
imports: import numbers
  from functools import singledispatch
  import torch
  from torch.distributions import transform_to, transforms
  import pyro.distributions
  from pyro.infer.reparam import DiscreteCosineReparam, HaarReparam
  from pyro.poutine.messenger import Messenger
  from pyro.poutine.util import site_is_subsample
  from pyro.primitives import get_param_store
label_desc: Use image node_id 17 for calling a global function with example usage: _reshape_batch_univariate(d, batch_shape) and returns: type