code: def Standard(path, size, BGRTranspose=False):
      img = Image.open(path)
      img = img.resize((size, size))
      x = np.array(img, dtype=np.float32)
      x /= 255.0
      x -= 0.5
      x *= 2.0
      if BGRTranspose == True:
          x = x[..., ::-1]
      return x
  
file_path: MMdnn/mmdnn/conversion/examples/imagenet_test.py
imports: from __future__ import absolute_import
  import argparse
  import numpy
  from six import text_type
  from PIL import Image
label_desc: Use image node_id 4 for calling the TestKit obj's underlying member method code with example usage: obj.Standard(path, size, BGRTranspose) and returns: x