code: def test_Speech2Embedding(spk_config_file):
      speech2embedding = Speech2Embedding(train_config=spk_config_file)
      speech = np.random.randn(1000)
      result = speech2embedding(speech)
      assert isinstance(result, torch.Tensor)
  
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 4 for calling a global function with example usage: test_Speech2Embedding(spk_config_file) without return types