code: def testSample(self):
      scores = np.array([[[0.1, 2.3, 5.0], [4.2, 0.5, 3.1]]])
      dist = plackett_luce.PlackettLuce(scores, validate_args=True)
      n = 100
      k = scores.shape[-1]
      samples = dist.sample(n, seed=test_util.test_seed())
      self.assertEqual(samples.dtype, tf.int32)
      sample_values = self.evaluate(samples)
      self.assertAllEqual([n, 1, 2, k], sample_values.shape)
      self.assertFalse(np.any(sample_values < 0))
      self.assertFalse(np.any(sample_values > k))
      self.assertTrue(
          np.all(np.sum(sample_values, axis=-1) == (k - 1) * k // 2)
      )
  
imports: import numpy
  import scipy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import identity
  from tensorflow_probability.python.distributions import plackett_luce
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.util import deferred_tensor
label_desc: Use image node_id 9 for calling the PlackettLuceTest obj's underlying member method code with example usage: obj.testSample() without return types