code: def test_weights():
      # Check if weights get initialized correctly
      layer = GroupNormalization(groups=1, scale=False, center=False)
      layer.build((None, 3, 4))
      assert len(layer.trainable_weights) == 0
      assert len(layer.weights) == 0
  
      layer = InstanceNormalization()
      layer.build((None, 3, 4))
      assert len(layer.trainable_weights) == 2
      assert len(layer.weights) == 2
  
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 3 for calling a global function with example usage: test_weights() without return types