class_docstr: Dataset as used by the SpellcheckingAsrCustomizationModel for training and validation pipelines.
  
  Args:
      input_file (str): path to tsv-file with data
      example_builder: instance of BertExampleBuilder
class_docstr_tok: ["Dataset","as","used","by","the","SpellcheckingAsrCustomizationModel","for","training","and","validation","pipelines",".","Args",":","input_file","(","str",")",":","path","to","tsv-file","with","data","example_builder",":","instance","of","BertExampleBuilder"]
docstr: Returns definitions of module output ports.
          
docstr_tok: ["Returns","definitions","of","module","output","ports","."]
code: def output_types(self) -> Optional[Dict[str, NeuralType]]:
      """Returns definitions of module output ports."""
      return {
          "input_ids": NeuralType(("B", "T"), ChannelType()),
          "input_mask": NeuralType(("B", "T"), MaskType()),
          "segment_ids": NeuralType(("B", "T"), ChannelType()),
          "input_ids_for_subwords": NeuralType(
              ("B", "T"), ChannelType()
          ),
          "input_mask_for_subwords": NeuralType(("B", "T"), MaskType()),
          "segment_ids_for_subwords": NeuralType(
              ("B", "T"), ChannelType()
          ),
          "character_pos_to_subword_pos": NeuralType(
              ("B", "T"), ChannelType()
          ),
          "labels_mask": NeuralType(("B", "T"), MaskType()),
          "labels": NeuralType(("B", "T"), LabelsType()),
          "spans": NeuralType(("B", "T", "C"), IntType()),
      }
  
imports: import pickle
  from io import BytesIO
  from typing import Dict, List, Optional, Tuple
  import braceexpand
  import numpy
  import torch
  import webdataset
  from nemo.collections.nlp.data.spellchecking_asr_customization.bert_example import BertExampleBuilder
  from nemo.core.classes.dataset import Dataset, IterableDataset
  from nemo.core.neural_types import ChannelType, IntType, LabelsType, MaskType, NeuralType
  from nemo.utils import logging
label_desc: Use image node_id 1 for calling the SpellcheckingAsrCustomizationDataset obj's underlying member method code with example usage: obj.output_types() and returns: dict