code: def save_image(image, image_path="_temp.png"):
      """Save a image.
  
      Parameters
      -----------
      image : numpy array
          [w, h, c]
      image_path : str
          path
  
      """
      try:  # RGB
          imageio.imwrite(image_path, image)
      except Exception:  # Greyscale
          imageio.imwrite(image_path, image[:, :, 0])
  
file_path: TensorLayer/tensorlayer/visualize.py
imports: import os
  import imageio
  import numpy
  import tensorlayer
  from tensorlayer.lazy_imports import LazyImport
  import colorsys, random
label_desc: Use image node_id 3 for calling a global function with example usage: save_image(image, image_path) without return types