):
    if preproc is None:
        raise ValueError(&#34;preproc is missing&#34;)
    lang = preproc.lang
    if lang is None:
        raise ValueError(&#34;lang is missing&#34;)
    config_path = os.path.join(tpp.get_bert_path(lang=lang), &#34;bert_config.json&#34;)
    checkpoint_path = os.path.join(tpp.get_bert_path(lang=lang), &#34;bert_model.ckpt&#34;)
    check_keras_bert()
    model = keras_bert.load_trained_model_from_checkpoint(
        config_path, checkpoint_path, training=True, trainable=True, s