code: def testShape(self, dist):
      # batch_shape == dist.batch_shape asserted in generalized_paretos()
      self.assertEqual(
          dist.batch_shape, self.evaluate(dist.batch_shape_tensor())
      )
      self.assertEqual(tf.TensorShape([]), dist.event_shape)
      self.assertAllEqual([], self.evaluate(dist.event_shape_tensor()))
  
imports: import hypothesis
  import hypothesis.strategies
  import numpy
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import generalized_pareto
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 1 for calling the GeneralizedParetoTest obj's underlying member method code with example usage: obj.testShape(dist) without return types