code: def content2idList(content, word2id_dict):
      """
      该函数的目的是将文本转换为对应的汉字数字id
      content：输入的文本
      word2id_dict：用于查找转换的字典
      """
      idList = []
      for word in content:  # 遍历每一个汉字
          if word in word2id_dict:  # 当刚文字在字典中时才进行转换，否则丢弃
              idList.append(word2id_dict[word])
      return idList
  
imports: from tensorflow import keras
  from sklearn.preprocessing import LabelEncoder
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: content2idList(content, word2id_dict) and returns: idList