code: def images(arrays, labels=None, domain=None, w=None):
      """Display a list of images with optional labels.
  
      Args:
        arrays: A list of NumPy arrays representing images
        labels: A list of strings to label each image.
          Defaults to show index if None
        domain: Domain of pixel values, inferred from min & max values if None
        w: width of output image, scaled using nearest neighbor interpolation.
          size unchanged if None
      """
  
      s = '<div style="display: flex; flex-direction: row;">'
      for i, array in enumerate(arrays):
          label = labels[i] if labels is not None else i
          img_html = _image_html(array, w=w, domain=domain)
          s += """<div style="margin-right:10px; margin-top: 4px;">
                {label} <br/>
                {img_html}
              </div>""".format(
              **locals()
          )
      s += "</div>"
      _display_html(s)
  
file_path: lucid/lucid/misc/io/showing.py
imports: from __future__ import absolute_import, division, print_function
  from io import BytesIO
  import base64
  import logging
  import numpy
  import IPython.display
  from string import Template
  import tensorflow
  from lucid.misc.io.serialize_array import serialize_array, array_to_jsbuffer
  from lucid.misc.io.collapse_channels import collapse_channels
label_desc: Use image node_id 5 for calling a global function with example usage: images(arrays, labels, domain, w) without return types