code: def testSlicingSubclasses(self):
      self.skipTest("b/183457779")
  
      class IndepBern1d(independent.Independent):
          def __init__(self, logits):
              super(IndepBern1d, self).__init__(
                  bernoulli.Bernoulli(logits=logits, dtype=tf.float32),
                  reinterpreted_batch_ndims=1,
              )
              self._parameters = {"logits": logits}
  
      d = IndepBern1d(tf.zeros([4, 5, 6]))
      with self.assertRaisesRegexp(
          NotImplementedError, "does not support batch slicing"
      ):
          d[:3]  # pylint: disable=pointless-statement
  
      class IndepBern1dSliceable(IndepBern1d):
          def _params_event_ndims(self):
              return dict(logits=1)
  
      d_sliceable = IndepBern1dSliceable(tf.zeros([4, 5, 6]))
      self.assertAllEqual([3, 5], d_sliceable[:3].batch_shape)
      self.assertAllEqual([6], d_sliceable[:3].event_shape)
  
imports: import functools
  import os
  from absl.testing import parameterized
  import numpy
  from scipy import stats
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import bernoulli
  from tensorflow_probability.python.distributions import exponential
  from tensorflow_probability.python.distributions import independent
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.distributions import log_prob_ratio
  from tensorflow_probability.python.distributions import logistic
  from tensorflow_probability.python.distributions import lognormal
  from tensorflow_probability.python.distributions import mvn_diag
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.distributions import poisson
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 17 for calling the IndependentDistributionTest obj's underlying member method code with example usage: obj.testSlicingSubclasses() and returns: dict