code: def _(d, batch_shape):
      dim = d.event_shape[0]
      loc = d.loc.reshape(batch_shape + (dim,))
      scale_tril = d.scale_tril.reshape(batch_shape + (dim, dim))
      return dist.MultivariateNormal(loc, scale_tril=scale_tril)
  
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 18 for calling a global function with example usage: _(d, batch_shape) and returns: dist