code: def _test_param_shapes(self, sample_shape, expected):
      param_shapes = horseshoe.Horseshoe.param_shapes(sample_shape)
      scale_shape = param_shapes["scale"]
      self.assertAllEqual(expected, self.evaluate(scale_shape))
      scale = self._test_param(np.ones(self.evaluate(scale_shape)))
      self.assertAllEqual(
          expected,
          self.evaluate(
              tf.shape(
                  horseshoe.Horseshoe(scale, validate_args=True).sample(
                      seed=test_util.test_seed()
                  )
              )
          ),
      )
  
imports: import numpy
  import scipy.stats
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import horseshoe
  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 _HorseshoeTest obj's underlying member method code with example usage: obj._test_param_shapes(sample_shape, expected) without return types