code: def load_datas(paths, images):
      datas = []
  
      # 读取数据列表
      if paths is not None:
          for im_path in paths:
              assert os.path.isfile(
                  im_path
              ), "The {} isn't a valid file path.".format(im_path)
              im = cv2.imread(im_path)
              datas.append(im)
  
      if images is not None:
          datas = images
  
      # 返回数据列表
      return datas
  
file_path: PaddleHub/modules/image/Image_gan/style_transfer/ID_Photo_GEN/module.py
imports: import os
  import cv2
  import math
  import paddle
  import numpy
  import paddle.nn
  import paddlehub
  from paddlehub.module.module import moduleinfo
label_desc: Use image node_id 2 for calling the ID_Photo_GEN obj's underlying member method code with example usage: obj.load_datas(paths, images) and returns: datas