class_docstr: speaker task test
class_docstr_tok: ["speaker","task","test"]
docstr: test generate data
docstr_tok: ["test","generate","data"]
code: def test_generate_data(self):
      """test generate data"""
      self.config["data"]["task"]["suffix"] = ".npy"
  
      task_name = self.config["data"]["task"]["name"]
      task_class = registers.task[task_name]
  
      task = task_class(self.config, utils.TRAIN)
  
      for (
          inputs,
          label,
          filename,
          clip_id,
          soft_labels,
      ) in task.generate_data():
          logging.info(
              "feat shape:{} \n labels:{} \nfilename:{} \nclip_id:{}\nsoft_labels:{}".format(
                  inputs.shape, label, filename, clip_id, soft_labels
              )
          )
          break
  
imports: import os
  import tempfile
  from pathlib import Path
  import numpy
  import delta.compat
  from absl import logging
  from delta import utils
  from delta.utils.register import registers
  from delta.utils.register import import_all_modules_for_register
  from delta.utils.kaldi import kaldi_dir_utils
label_desc: Use image node_id 5 for calling the SpeakerClsTaskTest obj's underlying member method code with example usage: obj.test_generate_data() without return types