code: def _show_images(images, cols=1, titles=None, fontsize=20):
      """Display a list of images in a single figure with matplotlib.
  
      Parameters
      ---------
      images: List of np.arrays compatible with plt.imshow.
  
      cols (Default = 1): Number of columns in figure (number of rows is
                          set to np.ceil(n_images/float(cols))).
  
      titles: List of titles corresponding to each image. Must have
              the same length as titles.
      """
      assert (titles is None) or (len(images) == len(titles))
      n_images = len(images)
      if titles is None:
          titles = ["Image (%d)" % i for i in range(1, n_images + 1)]
      fig = plt.figure()
      for n, (image, title) in enumerate(zip(images, titles)):
          a = fig.add_subplot(
              int(np.ceil(n_images / float(cols))), cols, n + 1
          )
          if isinstance(image, Image.Image):
              image = np.array(image)
          if image.ndim == 2:
              plt.gray()
          plt.imshow(image)
          a.set_title(title, fontsize=fontsize)
      fig.set_size_inches(np.array(fig.get_size_inches()) * n_images)
      plt.show()
  
imports: import logging
  import os
  from pathlib import Path
  import warnings
  import numpy
  import pandas
  import matplotlib.pyplot
  from PIL import Image
  import cv2
  from ..data import is_url, url_data
  from ...utils.filesystem import import_try_install
  from ...utils.bbox import bbox_xywh_to_xyxy, bbox_clip_xyxy
label_desc: Use image node_id 4 for calling a global function with example usage: _show_images(images, cols, titles, fontsize) without return types