code: def load_image_path(list):
      new_list = []
      for image_path in list:
          if image_path.endswith(".png") or image_path.endswith(".jpg"):
              new_list.append(image_path)
      return new_list
  
file_path: singa/examples/malaria_cnn/data/malaria.py
imports: import numpy
  import os
  import sys
  from PIL import Image
label_desc: Use image node_id 3 for calling a global function with example usage: load_image_path(list) and returns: new_list