code: def _(t, old_shape, new_shape):
      dim = t.event_dim
      assert len(old_shape) >= dim
      assert len(new_shape) >= dim
      if old_shape[-dim:] != new_shape[-dim:]:
          raise NotImplementedError
      return t
  
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 25 for calling a global function with example usage: _(t, old_shape, new_shape) and returns: t