code: def test_EncDecSpeakerLabelModel_export_to_onnx(
      self, speaker_label_model
  ):
      model = speaker_label_model.cuda()
      with tempfile.TemporaryDirectory() as tmpdir:
          filename = os.path.join(tmpdir, "sl.onnx")
          model.export(output=filename)
          onnx_model = onnx.load(filename)
          onnx.checker.check_model(
              onnx_model, full_check=True
          )  # throws when failed
          assert onnx_model.graph.input[0].name == "audio_signal"
          assert onnx_model.graph.output[0].name == "logits"
  
imports: import os
  import tempfile
  import onnx
  import pytest
  import torch.cuda
  from omegaconf import DictConfig, ListConfig, OmegaConf
  from nemo.collections.asr.models import EncDecClassificationModel, EncDecCTCModel, EncDecRNNTModel, EncDecSpeakerLabelModel
  from nemo.collections.asr.parts.utils import asr_module_utils
  from nemo.collections.common.parts.adapter_modules import LinearAdapterConfig
  from nemo.core.utils import numba_utils
  from nemo.core.utils.numba_utils import __NUMBA_MINIMUM_VERSION__
label_desc: Use image node_id 3 for calling the TestExportable obj's underlying member method code with example usage: obj.test_EncDecSpeakerLabelModel_export_to_onnx(speaker_label_model) without return types