class_docstr: Encoder decoder class for speaker label models.
  Model class creates training, validation methods for setting up data
  performing model forward pass.
  Expects config dict for
      * preprocessor
      * Jasper/Quartznet Encoder
      * Speaker Decoder
class_docstr_tok: ["Encoder","decoder","class","for","speaker","label","models",".","Model","class","creates","training",",","validation","methods","for","setting","up","data","performing","model","forward","pass",".","Expects","config","dict","for","*","preprocessor","*","Jasper\/Quartznet","Encoder","*","Speaker","Decoder"]
code: def input_types(self) -> Optional[Dict[str, NeuralType]]:
      if hasattr(self.preprocessor, "_sample_rate"):
          audio_eltype = AudioSignal(
              freq=self.preprocessor._sample_rate
          )
      else:
          audio_eltype = AudioSignal()
      return {
          "input_signal": NeuralType(("B", "T"), audio_eltype),
          "input_signal_length": NeuralType(tuple("B"), LengthsType()),
      }
  
imports: import copy
  import itertools
  from collections import Counter
  from math import ceil
  from typing import Dict, List, Optional, Union
  import librosa
  import numpy
  import soundfile
  import torch
  from hydra.utils import instantiate
  from omegaconf import DictConfig, OmegaConf, open_dict
  from pytorch_lightning import Trainer
  from torchmetrics import Accuracy
  from tqdm import tqdm
  from nemo.collections.asr.data.audio_to_label import AudioToSpeechLabelDataset, cache_datastore_manifests
  from nemo.collections.asr.data.audio_to_label_dataset import get_concat_tarred_speech_label_dataset, get_tarred_speech_label_dataset
  from nemo.collections.asr.data.audio_to_text_dataset import convert_to_config_list
  from nemo.collections.asr.models.asr_model import ExportableEncDecModel
  from nemo.collections.asr.parts.preprocessing.features import WaveformFeaturizer
  from nemo.collections.asr.parts.preprocessing.perturb import process_augmentations
  from nemo.collections.common.metrics import TopKClassificationAccuracy
  from nemo.collections.common.parts.preprocessing.collections import ASRSpeechLabel
  from nemo.core.classes import ModelPT
  from nemo.core.classes.common import PretrainedModelInfo, typecheck
  from nemo.core.neural_types import *
  from nemo.utils import logging
label_desc: Use image node_id 9 for calling the EncDecSpeakerLabelModel obj's underlying member method code with example usage: obj.input_types() and returns: dict