code: def imsave(filename, array):
      """
      Writes `array` into file `filename`
  
      This function depends on PIL (or Pillow) being installed.
  
      Parameters
      ----------
      filename : str
          path on file system
      array : ndarray-like
      """
      im = Image.fromarray(array)
      im.save(filename)
  
imports: import numpy
  import mahotas
  from PIL import Image
label_desc: Use image node_id 2 for calling a global function with example usage: imsave(filename, array) without return types