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."
      )
  
file_path: NeMo/nemo/collections/nlp/modules/common/transformer/transformer_utils.py
imports: from typing import Optional, Union
  from omegaconf.dictconfig import DictConfig
  from nemo.collections.nlp.modules.common.huggingface.huggingface_decoder import HuggingFaceDecoderModule
  from nemo.collections.nlp.modules.common.huggingface.huggingface_encoder import HuggingFaceEncoderModule
  from nemo.collections.nlp.modules.common.transformer.transformer import TransformerDecoderNM, TransformerEncoderNM
  from nemo.collections.nlp.modules.common.transformer.transformer_bottleneck import TransformerBottleneckEncoderNM
label_desc: Use image node_id 3 for calling a global function with example usage: get_megatron_transformer(model_name, pretrained, config_dict, encoder, checkpoint_file) without return types