code: def tfslim_preprocess(x):
      # Copied from keras (equivalent to the same as in TF Slim)
      x = x.copy()
      x /= 255.0
      x -= 0.5
      x *= 2.0
      return x
  
file_path: tensornets/tensornets/preprocess.py
imports: import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: tfslim_preprocess(x) and returns: x