code: def spk_config_file(tmp_path: Path):
      # Write default configuration file
      SpeakerTask.main(
          cmd=[
              "--dry_run",
              "true",
              "--output_dir",
              str(tmp_path / "spk"),
              "--frontend",
              "asteroid_frontend",
              "--spk_num",
              "2",
          ]
      )
      return tmp_path / "spk" / "config.yaml"
  
file_path: espnet/test/espnet2/bin/test_spk_inference.py
imports: from argparse import ArgumentParser
  from pathlib import Path
  import numpy
  import pytest
  import torch
  from espnet2.bin.spk_inference import Speech2Embedding, get_parser, main
  from espnet2.tasks.spk import SpeakerTask
label_desc: Use image node_id 3 for calling a global function with example usage: spk_config_file(tmp_path) and returns: unknown