class_docstr: speaker task test
class_docstr_tok: ["speaker","task","test"]
code: def test_speaker_utt_task_generate_data(self):
      task_name = "SpeakerUttTask"
      self.config["data"]["task"]["name"] = task_name
      task_class = registers.task[task_name]
      for mode in (utils.TRAIN, utils.EVAL, utils.INFER):
          task = task_class(self.config, mode)
          logging.info(f"mode: {mode}")
          for i in range(10):
              for utt, segid, feat, spkid in task.generate_data():
                  logging.info(
                      f"SpkUttTask: generate_data: {utt} {segid} {feat.shape} {spkid}"
                  )
  
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 9 for calling the SpeakerClsTaskTest obj's underlying member method code with example usage: obj.test_speaker_utt_task_generate_data() without return types