code: def testInverseGammaShape(self):
      alpha = tf.constant([3.0] * 5)
      beta = tf.constant(11.0)
      inv_gamma = inverse_gamma.InverseGamma(
          concentration=alpha, scale=beta, validate_args=True
      )
  
      self.assertEqual(
          self.evaluate(inv_gamma.batch_shape_tensor()), (5,)
      )
      self.assertEqual(inv_gamma.batch_shape, tf.TensorShape([5]))
      self.assertAllEqual(
          self.evaluate(inv_gamma.event_shape_tensor()), []
      )
      self.assertEqual(inv_gamma.event_shape, tf.TensorShape([]))
  
imports: import numpy
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import inverse_gamma
  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 InverseGammaTest obj's underlying member method code with example usage: obj.testInverseGammaShape() without return types