code: def check_unsupported_lang(lang, preprocess_mode):
      """
      ```
      check for unsupported language (e.g., nospace langs not supported by Jieba)
      ```
      """
      unsupported = (
          preprocess_mode == "standard"
          and TU.is_nospace_lang(lang)
          and not TU.is_chinese(lang)
      )
      if unsupported:
          raise ValueError(
              "language %s is currently only supported by the BERT model. "
              % (lang)
              + 'Please select preprocess_mode="bert"'
          )
  
file_path: ktrain/ktrain/text/data.py
imports: from ..None import utils
  from ..imports import *
  from .None import preprocessor
  from .None import textutils
label_desc: Use image node_id 5 for calling a global function with example usage: check_unsupported_lang(lang, preprocess_mode) without return types