code: def get_megatron_transformer(
      model_name: Optional[str] = None,
      pretrained: bool = True,
      config_dict: Optional[Union[dict, DictConfig]] = None,
      encoder: bool = True,
      checkpoint_file: str = None,
  ) -> None:
      raise ValueError(
          "megatron-lm bert encoders are deprecated in NeMo 1.5.0. Please use NeMo 1.4.0 until megatron bert support is added again."
      )
  
imports: from typing import Optional, Union
  from omegaconf.dictconfig import DictConfig
  from nemo.collections.asr.modules.transformer.transformer import TransformerDecoderNM, TransformerEncoderNM
  from nemo.collections.asr.modules.transformer.transformer_bottleneck import TransformerBottleneckEncoderNM
label_desc: Use image node_id 2 for calling a global function with example usage: get_megatron_transformer(model_name, pretrained, config_dict, encoder, checkpoint_file) without return types