code: def detect_lang_naive(s):
      """
      Naive function for language detection, should be replaced by an independant layer
      """
      remove_nota = (
          "[’·°–!\"#$%&'()*+,-./:;<=>?@，。?★、…【】（）《》？“”‘’！[\\]^_`{|}~]+"
      )
      s = re.sub(remove_nota, "", s)
      s = re.sub("[0-9]", "", s).strip()
      res = re.sub("[a-zA-Z]", "", s).strip()
      if len(res) <= 0:
          return "en"
      else:
          return "zh"
  
file_path: ColossalAI/applications/ColossalQA/colossalqa/utils.py
imports: import re
  from typing import Union
  from colossalqa.mylogging import get_logger
  from sqlalchemy import Engine, MetaData, create_engine
  from sqlalchemy.exc import SQLAlchemyError
  from sqlalchemy.ext.declarative import declarative_base
label_desc: Use image node_id 4 for calling a global function with example usage: detect_lang_naive(s) and returns: str, str