class_docstr: Instance normalisation layer, wrapper of `tf.contrib.layers.instance_norm`.
code: def layer_op(self, inputs):
      if self.gamma_initializer is None:
          self.gamma_initializer = tf.constant_initializer(1.0)
      return tf.contrib.layers.instance_norm(
          inputs,
          center=True,
          scale=True,
          epsilon=self.eps,
          param_initializers={"gamma": self.gamma_initializer},
          reuse=None,
          variables_collections=None,
          outputs_collections=None,
          trainable=True,
          data_format="NHWC",
          scope=None,
      )
  
file_path: NiftyNet/niftynet/layer/bn.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from tensorflow.python.training import moving_averages
  from niftynet.layer.base_layer import TrainableLayer
label_desc: Use image node_id 2 for calling the InstanceNormLayer obj's underlying member method code with example usage: obj.layer_op(inputs) and returns: tf