code: def test_make_batchset(self):
      dummy_json = make_dummy_json(128, [128, 512], [16, 128])
      for task in espnet_utils.TASK_SET:
          # check w/o adaptive batch size
          batchset = espnet_utils.make_batchset(
              task,
              data=dummy_json,
              batch_size=24,
              max_length_in=2**10,
              max_length_out=2**10,
              min_batch_size=1,
          )
          self.assertEqual(
              sum([len(batch) >= 1 for batch in batchset]),
              len(batchset),
          )
          logging.info(
              "batch: {}".format(([len(batch) for batch in batchset]))
          )
  
          batchset = espnet_utils.make_batchset(
              task, dummy_json, 24, 2**10, 2**10, min_batch_size=10
          )
          self.assertEqual(
              sum([len(batch) >= 10 for batch in batchset]),
              len(batchset),
          )
          logging.info(
              "batch: {}".format(([len(batch) for batch in batchset]))
          )
  
          # check w/ adaptive batch size
          batchset = espnet_utils.make_batchset(
              task, dummy_json, 24, 256, 64, min_batch_size=10
          )
          self.assertEqual(
              sum([len(batch) >= 10 for batch in batchset]),
              len(batchset),
          )
          logging.info(
              "batch: {}".format(([len(batch) for batch in batchset]))
          )
  
          batchset = espnet_utils.make_batchset(
              task, dummy_json, 24, 256, 64, min_batch_size=10
          )
          self.assertEqual(
              sum([len(batch) >= 10 for batch in batchset]),
              len(batchset),
          )
  
imports: import tempfile
  from pathlib import Path
  import numpy
  import delta.compat
  import h5py
  import kaldiio
  from absl import logging
  from espnet.utils.io_utils import LoadInputsAndTargets
  from espnet.utils.io_utils import SoundHDF5File
  from test.utils_test import make_dummy_json
  from delta import utils
  from delta.data.utils import espnet_utils
  from delta.data.utils.test_utils import generate_json_data
label_desc: Use image node_id 3 for calling the KaldiJsonReaderTest obj's underlying member method code with example usage: obj.test_make_batchset() without return types