code: def _check_megatron_name(pretrained_model_name: str) -> None:
      megatron_model_list = get_megatron_lm_models_list()
      if pretrained_model_name not in megatron_model_list:
          raise ValueError(
              f"For Megatron-LM models, choose from the following list: {megatron_model_list}"
          )
  
file_path: NeMo/nemo/collections/nlp/modules/common/megatron/megatron_utils.py
imports: import os
  import shutil
  from typing import Dict, List
  import torch
  import wget
  from torch.hub import _get_torch_home
  from nemo.utils import logging
label_desc: Use image node_id 5 for calling a global function with example usage: _check_megatron_name(pretrained_model_name) without return types