code: def texts_from_csv_string(preprocess_mode="standard"):
      DATA_PATH = os.path.join(
          CURRDIR, "resources/text_data/texts-strings.csv"
      )
      trn, val, preproc = txt.texts_from_csv(
          DATA_PATH,
          "text",
          val_filepath=DATA_PATH,
          label_columns="label",
          max_features=100,
          maxlen=10,
          ngram_range=3,
          preprocess_mode=preprocess_mode,
      )
      return (trn, val, preproc)
  
imports: import os.path
  from unittest import TestCase, main, skip
  import testenv
  import ktrain
  from ktrain import text
  from ktrain import utils
  from ktrain import vision
label_desc: Use image node_id 3 for calling a global function with example usage: texts_from_csv_string(preprocess_mode) and returns: trn,  val,  preproc