code: def images_from_fname():
      trn, val, preproc = vis.images_from_fname(
          os.path.join(
              CURRDIR, "resources/image_data/image_folder/all"
          ),
          pattern=r"([^/]+)\.\d+.jpg$",
          val_pct=0.25,
          random_state=42,
          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 8 for calling a global function with example usage: images_from_fname() and returns: trn,  val,  preproc