code: def read(filename, flags=0):
      """Read an image to a numpy array of shape (width, height) for
      greyscale images, or shape (width, height, nchannels) for RGB or
      RGBA images.
  
      """
      bitmap = _read_bitmap(filename, flags)
      try:
          return _array_from_bitmap(bitmap)
      finally:
          _FI.FreeImage_Unload(bitmap)
  
imports: import sys
  import os
  import ctypes
  import ctypes.util
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: read(filename, flags) and returns: _array_from_bitmap