code: def get_pretrained_lm_models_list(
      include_external: bool = False,
  ) -> List[str]:
      """
      Returns the list of supported pretrained model names
  
      Args:
          include_external if true includes all HuggingFace model names, not only those supported language models in NeMo.
  
      """
      return get_huggingface_pretrained_lm_models_list(
          include_external=include_external
      )
  
file_path: NeMo/nemo/collections/nlp/modules/common/lm_utils.py
imports: import os
  from typing import List, Optional, Union
  from attr import asdict
  from omegaconf import DictConfig
  from pytorch_lightning import Trainer
  from nemo.collections.nlp.modules.common.bert_module import BertModule
  from nemo.collections.nlp.modules.common.decoder_module import DecoderModule
  from nemo.collections.nlp.modules.common.encoder_module import EncoderModule
  from nemo.collections.nlp.modules.common.huggingface.huggingface_utils import get_huggingface_lm_model, get_huggingface_pretrained_lm_models_list
  from nemo.collections.nlp.modules.common.megatron.megatron_utils import get_megatron_pretrained_bert_models
  from nemo.collections.nlp.modules.common.transformer.transformer import NeMoTransformerConfig
  from nemo.collections.nlp.modules.common.transformer.transformer_utils import get_huggingface_transformer, get_nemo_transformer
  from nemo.utils import AppState, logging
label_desc: Use image node_id 2 for calling a global function with example usage: get_pretrained_lm_models_list(include_external) and returns: get_huggingface_pretrained_lm_models_list