code: def samplewise_zero_center(X):
      """samplewise_zero_center.
  
      Zero center each sample by subtracting it by its mean.
  
      Arguments:
          X: `array`. The batch of samples to center.
  
      Returns:
          A numpy array with same shape as input.
  
      """
      for i in range(len(X)):
          X[i] -= np.mean(X[i], axis=1, keepdims=True)
      return X
  
imports: from __future__ import division, print_function, absolute_import
  import os
  import random
  import numpy
  from PIL import Image
  import pickle
  import csv
  import warnings
  import tensorflow.compat.v1
  from io import BytesIO
label_desc: Use image node_id 20 for calling a global function with example usage: samplewise_zero_center(X) and returns: X