class_docstr: Super pixel layer.
class_docstr_tok: ["Super","pixel","layer","."]
code: def __init__(self, block_args, global_params, name=None):
      super().__init__(name=name)
      self._superpixel = tf.keras.layers.Conv2D(
          block_args.input_filters,
          kernel_size=[2, 2],
          strides=[2, 2],
          kernel_initializer=conv_kernel_initializer,
          padding="same",
          data_format=global_params.data_format,
          use_bias=False,
          name="conv2d",
      )
      self._bnsp = global_params.batch_norm(
          axis=1
          if global_params.data_format == "channels_first"
          else -1,
          momentum=global_params.batch_norm_momentum,
          epsilon=global_params.batch_norm_epsilon,
          name="tpu_batch_normalization",
      )
      self._relu_fn = global_params.relu_fn or tf.nn.swish
  
imports: import collections
  import itertools
  import math
  from absl import logging
  import numpy
  import six
  from six.moves import xrange
  import tensorflow
  import utils
label_desc: Use image node_id 1 to create a new SuperPixel object from inherited base classes: tf.keras.layers with example: obj = SuperPixel(block_args, global_params, name)