y class_names argument if this is supposed to be classification task)&#34;
        )
    else:
        print(&#34;task: text classification&#34;)
    return (trn, val, preproc)


def check_unsupported_lang(lang, preprocess_mode):
    &#34;&#34;&#34;
    ```
    check for unsupported language (e.g., nospace langs not supported by Jieba)
    ```
    &#34;&#34;&#34;
    unsupported = (
        preprocess_mode == &#34;standard&#34;
        and TU.is_nospace_lang(lang)
        and not TU.is_chinese(lang)
    )
 