class_docstr: Unit test for AsrSeqTask. 
code: def test_dummy_dataset(self):
      for batch_mode in [True, False]:
          task_name = self.config["data"]["task"]["name"]
          self.config["data"]["task"]["batch_mode"] = batch_mode
          self.config["data"]["task"]["dummy"] = True
          task = registers.task[task_name](self.config, self.mode)
  
          with self.cached_session(use_gpu=False, force_gpu=False):
              for _ in task.dataset(
                  self.mode, self.batch_size, epoch=1
              ):
                  break
              for features, labels in task.dataset(
                  self.mode, self.batch_size, epoch=1
              ):  # pylint: disable=bad-continuation
                  logging.debug(
                      "feats : {} : {}".format(
                          features["inputs"], features["inputs"].shape
                      )
                  )
                  logging.debug(
                      "ilens : {} : {}".format(
                          features["input_length"],
                          features["input_length"].shape,
                      )
                  )
                  logging.debug(
                      "targets : {} : {}".format(
                          features["targets"], features["targets"].shape
                      )
                  )
                  logging.debug(
                      "olens : {} : {}".format(
                          features["target_length"],
                          features["target_length"].shape,
                      )
                  )
                  logging.debug(
                      "ctc : {}, shape : {}".format(
                          labels["ctc"], labels["ctc"].shape
                      )
                  )
                  self.assertDTypeEqual(features["inputs"], np.float32)
                  self.assertDTypeEqual(features["targets"], np.int32)
                  self.assertDTypeEqual(
                      features["input_length"], np.int32
                  )
                  self.assertDTypeEqual(
                      features["target_length"], np.int32
                  )
  
                  self.assertEqual(len(features["inputs"].shape), 4)
                  self.assertEqual(
                      len(features["input_length"].shape), 1
                  )
                  self.assertEqual(len(features["targets"].shape), 2)
                  self.assertEqual(
                      len(features["target_length"].shape), 1
                  )
  
file_path: delta/delta/data/task/asr_seq_task_test.py
imports: from pathlib import Path
  from absl import logging
  import numpy
  import delta.compat
  from delta import utils
  from delta.data.utils.test_utils import generate_json_data
  from delta.utils.register import registers
  from delta.utils.register import import_all_modules_for_register
label_desc: Use image node_id 4 for calling the AsrSeqTaskTest obj's underlying member method code with example usage: obj.test_dummy_dataset() without return types