code: def image(array, domain=None, width=None, format='png', **kwargs):
    
  
    image_data = serialize_array(array, fmt=format, domain=domain)
    image = IPython.display.Image(data=image_data, format=format, width=width)
    IPython.display.display(image)
docs: Display an image.
  
    Args:
      array: NumPy array representing the image
      fmt: Image format e.g. png, jpeg
      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