code: def frompng(path, ext='png', start=None, stop=None, recursive=False, npartitions=None, labels=None, engine=None, credentials=None):
      from scipy.misc import imread
      def getarray(idx_buffer_filename):
          idx, buf, _ = idx_buffer_filename
          fbuf = BytesIO(buf)
          yield (idx,), imread(fbuf)
      return frompath(path, accessor=getarray, ext=ext, start=start,
                      stop=stop, recursive=recursive, npartitions=npartitions,
                      labels=labels, engine=engine, credentials=credentials)