code: def test_crp_generator_generate_single(self, n, alpha):
      crp_generator = partition.CRPGenerator(alpha=alpha)
      partitions = crp_generator.generate_single(n)
      partition_sum = partitions.sum()
      self.assertEqual(partition_sum, n)
      no_zero_partition = (partitions >= 1).all()
      self.assertTrue(no_zero_partition)
  
file_path: neural-structured-learning/research/neural_clustering/data_generators/partition_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from neural_clustering.data_generators import partition
  import numpy
label_desc: Use image node_id 2 for calling the PartitionTest obj's underlying member method code with example usage: obj.test_crp_generator_generate_single(n, alpha) without return types