code: def image_to_uint_255(image):
      """
      Convert float images to int 0-255 images.
  
      Args:
          image (numpy.ndarray): Input image. Can be either [0, 255], [0, 1], [-1, 1]
  
      Returns:
          numpy.ndarray:
      """
      if image.dtype == np.uint8:
          return image
  
      if image.min() < 0:
          image = (image + 1.0) / 2.0
  
      return (image * 255).astype("uint8")
  
file_path: tf-explain/tf_explain/utils/display.py
imports: import math
  import warnings
  import numpy
  import cv2
label_desc: Use image node_id 3 for calling a global function with example usage: image_to_uint_255(image) and returns: unknown, image