code: def process(image, use_bgr):
      # Per channel normalization
      image[:, :, :, 0] -= 123.68
      image[:, :, :, 1] -= 116.78
      image[:, :, :, 2] -= 103.94
  
      if use_bgr:
          # RGB -> BGR
          image[:, :, :, (0, 1, 2)] = image[:, :, :, (2, 1, 0)]
  
      return image
  
file_path: neupy/examples/cnn/imagenet_tools.py
imports: from __future__ import division
  import os
  import requests
  from tqdm import tqdm
  import numpy
  from imageio import imread
  from skimage import transform
  from neupy.utils import asfloat
label_desc: Use image node_id 3 for calling a global function with example usage: process(image, use_bgr) and returns: image