code: def images_from_csv():
      train_fpath = os.path.join(
          CURRDIR, "resources/image_data/train-vision.csv"
      )
      val_fpath = os.path.join(
          CURRDIR, "resources/image_data/valid-vision.csv"
      )
      trn, val, preproc = vis.images_from_csv(
          train_fpath,
          "filename",
          directory=os.path.join(
              CURRDIR, "resources/image_data/image_folder/all"
          ),
          val_filepath=val_fpath,
          label_columns=["cat", "dog"],
          data_aug=vis.get_data_aug(horizontal_flip=True),
      )
      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 7 for calling a global function with example usage: images_from_csv() and returns: trn,  val,  preproc