def METHOD_NAME(
    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."
    )
    # vocab_file = config_dict.pop('vocab_file', None)
    # if encoder:
    #     model = MegatronEncoderModule(
    #         model_name=model_name,
    #         pretrained=pretrained,
    #         config_dict=config_dict,
    #         checkpoint_file=checkpoint_file,
    #         vocab_file=vocab_file,
    #     )
    # else:
    #     raise ValueError('Megatron decoders are not currently supported.')
    # return model