def METHOD_NAME(distribution_name, batch_shape):
  raise ValueError(
      '`{distribution_name}` must have batch shape with length 1; '
      'got {batch_shape}. Consider using '
      '`tensorflow_probability.distributions.Independent` '
      'to manipulate batch and event shapes.'.format(
          distribution_name=distribution_name, batch_shape=batch_shape
      )
  )