code: def test_Speech2Text_whisper_prompt(
      asr_config_file,
      token_list_whisper_lang,
      token_list_whisper_lang_add,
  ):
      pytest.importorskip("whisper")
      file = open(asr_config_file, "r", encoding="utf-8")
      asr_train_config = file.read()
      asr_train_config = yaml.full_load(asr_train_config)
      asr_train_config["token_type"] = "whisper"
      asr_train_config["bpemodel"] = "whisper_multilingual"
      asr_train_config["token_list"] = str(token_list_whisper_lang)
      asr_train_config["model_conf"]["ignore_id"] = 1
      asr_train_config["model_conf"]["sym_blank"] = "<pad>"
      asr_train_config["model_conf"]["sym_sos"] = "<s>"
      asr_train_config["model_conf"]["sym_eos"] = "</s>"
      # Change the configuration file
      with open(asr_config_file, "w", encoding="utf-8") as files:
          yaml.dump(asr_train_config, files)
      speech2text = Speech2Text(
          asr_train_config=asr_config_file,
          ctc_weight=0.0,
          maxlenratio=-1,
          lang_prompt_token="<|en|> <|er|>",
          prompt_token_file=str(token_list_whisper_lang_add),
      )
      speech = np.random.randn(1000)
      results = speech2text(speech)
      for text, token, token_int, hyp in results:
          assert isinstance(text, str)
          assert isinstance(token[0], str)
          assert isinstance(token_int[0], int)
          assert isinstance(hyp, Hypothesis)
  
imports: import string
  from argparse import ArgumentParser
  from pathlib import Path
  import numpy
  import pytest
  import yaml
  from espnet2.bin.asr_inference import Speech2Text, get_parser, main
  from espnet2.bin.asr_inference_streaming import Speech2TextStreaming
  from espnet2.bin.whisper_export_vocabulary import export_vocabulary
  from espnet2.tasks.asr import ASRTask
  from espnet2.tasks.enh_s2t import EnhS2TTask
  from espnet2.tasks.lm import LMTask
  from espnet.nets.beam_search import Hypothesis
label_desc: Use image node_id 22 for calling a global function with example usage: test_Speech2Text_whisper_prompt(asr_config_file, token_list_whisper_lang, token_list_whisper_lang_add) without return types