code: def show_random_images(img_folder, n=4, rows=1):
      """
      ```
      display random images from a img_folder
      ```
      """
      fnames = []
      for ext in ("*.gif", "*.png", "*.jpg"):
          fnames.extend(glob.glob(os.path.join(img_folder, ext)))
      ims = []
      for i in range(n):
          img_path = random.choice(fnames)
          img = keras.preprocessing.image.load_img(img_path)
          x = img_to_array(img)
          x = x / 255.0
          ims.append(x)
      U.plots(ims, rows=rows)
      return
  
imports: from ..None import utils
  from ..imports import *
  from .preprocessor import ImagePreprocessor
label_desc: Use image node_id 2 for calling a global function with example usage: show_random_images(img_folder, n, rows) without return types