def get_model(name, dataset_name='<STR_LIT>', **kwargs):
models = {'<STR_LIT>' : standard_lstm_lm_200,<EOL>'<STR_LIT>' : standard_lstm_lm_650,<EOL>'<STR_LIT>': standard_lstm_lm_1500,<EOL>'<STR_LIT>': awd_lstm_lm_1150,<EOL>'<STR_LIT>': awd_lstm_lm_600,<EOL>'<STR_LIT>': big_rnn_lm_2048_512,<EOL>'<STR_LIT>': elmo_2x1024_128_2048cnn_1xhighway,<EOL>'<STR_LIT>': elmo_2x2048_256_2048cnn_1xhighway,<EOL>'<STR_LIT>': elmo_2x4096_512_2048cnn_2xhighway,<EOL>'<STR_LIT>': transformer_en_de_512,<EOL>'<STR_LIT>'       : bert_12_768_12,<EOL>'<STR_LIT>'      : bert_24_1024_16}<EOL>name = name.lower()<EOL>if name not in models:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'%(<EOL>name, '<STR_LIT>'.join(sorted(models.keys()))))<EOL><DEDENT>kwargs['<STR_LIT>'] = dataset_name<EOL>return models[name](**kwargs)<EOL>
Returns a pre-defined model by name.

    Parameters
    ----------
    name : str
        Name of the model.
    dataset_name : str or None, default 'wikitext-2'.
        The dataset name on which the pre-trained model is trained.
        For language model, options are 'wikitext-2'.
        For ELMo, Options are 'gbw' and '5bw'.
        'gbw' represents 1 Billion Word Language Model Benchmark
        http://www.statmt.org/lm-benchmark/;
        '5bw' represents a dataset of 5.5B tokens consisting of
        Wikipedia (1.9B) and all of the monolingual news crawl data from WMT 2008-2012 (3.6B).
        If specified, then the returned vocabulary is extracted from
        the training set of the dataset.
        If None, then vocab is required, for specifying embedding weight size, and is directly
        returned.
    vocab : gluonnlp.Vocab or None, default None
        Vocabulary object to be used with the language model.
        Required when dataset_name is not specified.
        None Vocabulary object is required with the ELMo model.
    pretrained : bool, default False
        Whether to load the pre-trained weights for model.
    ctx : Context, default CPU
        The context in which to load the pre-trained weights.
    root : str, default '~/.mxnet/models'
        Location for keeping the model parameters.

    Returns
    -------
    gluon.Block, gluonnlp.Vocab, (optional) gluonnlp.Vocab