code: def images_from_folder():
      (trn, val, preproc) = vis.images_from_folder(
          datadir=os.path.join(
              CURRDIR, "resources/image_data/image_folder"
          ),
          data_aug=vis.get_data_aug(horizontal_flip=True),
          classes=["cat", "dog"],
          train_test_names=["train", "valid"],
      )
      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 6 for calling a global function with example usage: images_from_folder() and returns: trn,  val,  preproc