code: def imread(path, is_grayscale=False):
      if is_grayscale:
          return imageio.imread(path, flatten=True).astype(
              np.float
          )  # [width,height] flatten RGB image to grayscale image
      else:
          return imageio.imread(path).astype(np.float)
  
file_path: BigDL/apps/variational-autoencoder/utils.py
imports: import numpy
  import imageio
  from PIL import Image
label_desc: Use image node_id 4 for calling a global function with example usage: imread(path, is_grayscale) and returns: imageio, imageio