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()),
          "segment_ids": NeuralType(("B", "T"), ChannelType()),
          "input_mask": NeuralType(("B", "T"), MaskType()),
          "labels": NeuralType(
              tuple("B"),
              RegressionValuesType()
              if self.task_name == "sts-b"
              else CategoricalValuesType(),
          ),
      }
  
imports: import os
  import pickle
  from typing import Dict, List, Optional, Union
  import numpy
  import torch
  from nemo.collections.common.tokenizers.tokenizer_spec import TokenizerSpec
  from nemo.collections.nlp.data.glue_benchmark.data_processors import ColaProcessor, MnliMismatchedProcessor, MnliProcessor, MrpcProcessor, QnliProcessor, QqpProcessor, RteProcessor, Sst2Processor, StsbProcessor, WnliProcessor, XNLIProcessor
  from nemo.core.classes import Dataset
  from nemo.core.neural_types import CategoricalValuesType, ChannelType, MaskType, NeuralType, RegressionValuesType
  from nemo.utils import logging
label_desc: Use image node_id 1 for calling the GLUEDataset obj's underlying member method code with example usage: obj.output_types() and returns: dict