docstr: Test with a single class.
docstr_tok: ["Test","with","a","single","class","."]
code: def test_single_class(self):
      """Test with a single class."""
      num_classes = 1
      (_, y_train), (_, y_test) = test_utils.get_test_data(
          self.train_samples,
          self.test_samples,
          self.input_shape,
          num_classes,
      )
      self.assertTrue(np.all(y_train == 0))
      self.assertTrue(np.all(y_test == 0))
  
imports: import numpy
  from absl.testing import parameterized
  from keras.testing import test_case
  from keras.testing import test_utils
label_desc: Use image node_id 6 for calling the ClassDistributionTests obj's underlying member method code with example usage: obj.test_single_class() without return types