code: def load(dir_path):
      train_x, train_y = load_train_data(dir_path=dir_path)
      val_x, val_y = load_test_data(dir_path=dir_path)
      train_x, val_x = normalize(train_x, val_x)
      train_y = train_y.flatten()
      val_y = val_y.flatten()
      return train_x, train_y, val_x, val_y
  
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 6 for calling a global function with example usage: load(dir_path) and returns: train_x,  train_y,  val_x,  val_y