class_docstr: Base class for encoder neural module to be used in NLP models. 
class_docstr_tok: ["Base","class","for","encoder","neural","module","to","be","used","in","NLP","models","."]
code: def input_types(self) -> Optional[Dict[str, NeuralType]]:
      return {
          "input_ids": NeuralType(("B", "T"), ChannelType()),
          "encoder_mask": NeuralType(("B", "T"), MaskType()),
      }
  
file_path: NeMo/nemo/collections/nlp/modules/common/megatron/megatron_encoder_module.py
imports: from abc import ABC
  from re import L
  from typing import Dict, List, Optional
  from nemo.core.classes import NeuralModule
  from nemo.core.neural_types import ChannelType, MaskType, NeuralType
label_desc: Use image node_id 1 for calling the MegatronEncoderModule obj's underlying member method code with example usage: obj.input_types() and returns: dict