class_docstr: Tests for the PerImageStandardize class.
class_docstr_tok: ["Tests","for","the","PerImageStandardize","class","."]
docstr: Set up session and build model graph
docstr_tok: ["Set","up","session","and","build","model","graph"]
code: def setUp(self):
      """
      Set up session and build model graph
      """
      super(TestPerImageStandardize, self).setUp()
  
      self.input_shape = (128, 32, 32, 3)
      self.sess = tf.Session()
      self.model = MLP(
          input_shape=self.input_shape,
          layers=[PerImageStandardize(name="output")],
      )
  
      self.x = tf.placeholder(shape=self.input_shape, dtype=tf.float32)
      self.y = self.model.get_layer(self.x, "output")
  
      self.y_true = tf.map_fn(
          tf.image.per_image_standardization, self.x
      )
  
file_path: cleverhans/cleverhans_v3.1.0/tests_tf/test_picklable_model.py
imports: import numpy
  import tensorflow
  from cleverhans.devtools.checks import CleverHansTest
  from cleverhans.picklable_model import Dropout
  from cleverhans.picklable_model import MLP
  from cleverhans.picklable_model import PerImageStandardize
label_desc: Use image node_id 1 for calling the TestPerImageStandardize obj's underlying member method code with example usage: obj.setUp() without return types