parameters: (self, im)
return_statement: return im
docstring: preprocess() emulate the pre-processing occurring in the vgg16 caffe
          prototxt.
docstring_summary: preprocess() emulate the pre-processing occurring in the vgg16 caffe
          prototxt.
docstring_tokens: preprocess () emulate the pre - processing occurring in the vgg16 caffe prototxt .
function: def preprocess(self, im):
          """
          preprocess() emulate the pre-processing occurring in the vgg16 caffe
          prototxt.
          """
  
          im = np.float32(im)
          im = im[:, :, ::-1]  # change to BGR
          im -= self.mean
          im *= self.scale
          im = im.transpose((2, 0, 1))
  
          return im
function_tokens: def preprocess ( self , im ) : im = np . float32 ( im ) im = im [ : , : , : : - 1 ] # change to BGR im -= self . mean im *= self . scale im = im . transpose ( ( 2 , 0 , 1 ) ) return im