code: def test_cub_label_dataset(self):
      assert_is_label_dataset(
          self.dataset, len(cub_label_names), n_example=10
      )
      idx = np.random.choice(np.arange(10))
      if self.return_bbox:
          bbox = self.dataset[idx][2]
          assert_is_bbox(bbox)
      if self.return_prob_map:
          img = self.dataset[idx][0]
          prob_map = self.dataset[idx][-1]
          self.assertEqual(prob_map.dtype, np.float32)
          self.assertEqual(prob_map.shape, img.shape[1:])
          self.assertTrue(np.min(prob_map) >= 0)
          self.assertTrue(np.max(prob_map) <= 1)
  
file_path: chainercv/tests/datasets_tests/cub_tests/test_cub_label_dataset.py
imports: import unittest
  import numpy
  from chainer import testing
  from chainer.testing import attr
  from chainercv.datasets import cub_label_names
  from chainercv.datasets import CUBLabelDataset
  from chainercv.utils import assert_is_bbox
  from chainercv.utils import assert_is_label_dataset
label_desc: Use image node_id 2 for calling the TestCUBLabelDataset obj's underlying member method code with example usage: obj.test_cub_label_dataset() without return types