code: def _reader_creator(file_list, data_path, shuffle=False):
      def reader():
          with open(file_list) as flist:
              lines = [line.strip() for line in flist]
              if shuffle:
                  random.shuffle(lines)
              for line in lines:
                  img_path = os.path.join(data_path, line)
                  yield [img_path]
  
      mapper = functools.partial(process_image)
      return paddle.reader.xmap_readers(
          mapper, reader, THREAD, BUF_SIZE
      )
  
file_path: AdvBox/example/reader.py
imports: from __future__ import division
  from past.utils import old_div
  import os
  import random
  import functools
  import numpy
  import paddle
  from PIL import Image, ImageEnhance
label_desc: Use image node_id 4 for calling a global function with example usage: _reader_creator(file_list, data_path, shuffle) and returns: paddle