code: def readImages(
      path,
      sc=None,
      minPartitions=1,
      resizeH=-1,
      resizeW=-1,
      image_codec=-1,
      bigdl_type="float",
  ):
      """
      Read the directory of images into DataFrame from the local or remote source.
      :param path Directory to the input data files, the path can be comma separated paths as the
              list of inputs. Wildcards path are supported similarly to sc.binaryFiles(path).
      :param min_partitions A suggestion value of the minimal splitting number for input data.
      :param resizeH height after resize, by default is -1 which will not resize the image
      :param resizeW width after resize, by default is -1 which will not resize the image
      :param image_codec specifying the color type of a loaded image, same as in OpenCV.imread.
             By default is Imgcodecs.CV_LOAD_IMAGE_UNCHANGED(-1).
             >0 Return a 3-channel color image. Note In the current implementation the
                alpha channel, if any, is stripped from the output image. Use negative value
                if you need the alpha channel.
             =0 Return a grayscale image.
             <0 Return the loaded image as is (with alpha channel if any).
      :return DataFrame with a single column "image"; Each record in the column represents
              one image record: Row (uri, height, width, channels, CvType, bytes).
      """
      df = callZooFunc(
          bigdl_type,
          "nnReadImage",
          path,
          sc,
          minPartitions,
          resizeH,
          resizeW,
          image_codec,
      )
      df._sc._jsc = sc._jsc
      return df
  
imports: import sys
  from zoo.common.utils import callZooFunc
label_desc: Use image node_id 1 for calling the NNImageReader obj's underlying member method code with example usage: obj.readImages(path, sc, minPartitions, resizeH, resizeW, image_codec, bigdl_type) and returns: df