code: def test_regularizations():
      layer = GroupNormalization(
          gamma_regularizer="l1",
          beta_regularizer="l1",
          groups=4,
          axis=2,
      )
      layer.build((None, 4, 4))
      assert len(layer.losses) == 2
      max_norm = tf.keras.constraints.max_norm
      layer = GroupNormalization(
          groups=2, gamma_constraint=max_norm, beta_constraint=max_norm
      )
      layer.build((None, 3, 4))
      assert layer.gamma.constraint == max_norm
      assert layer.beta.constraint == max_norm
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.layers.normalizations import FilterResponseNormalization
  from tensorflow_addons.layers.normalizations import GroupNormalization
  from tensorflow_addons.layers.normalizations import InstanceNormalization
label_desc: Use image node_id 16 for calling a global function with example usage: test_regularizations() without return types