code: def test_noisy_dense_constraints():
      k_constraint = keras.constraints.max_norm(0.01)
      b_constraint = keras.constraints.max_norm(0.01)
      layer = NoisyDense(
          3,
          kernel_constraint=k_constraint,
          bias_constraint=b_constraint,
          name="noisy_dense_constriants",
      )
      layer(keras.backend.variable(np.ones((2, 4))))
      np.testing.assert_array_equal(
          layer.mu_kernel.constraint, k_constraint
      )
      np.testing.assert_array_equal(
          layer.sigma_kernel.constraint, k_constraint
      )
      np.testing.assert_array_equal(
          layer.mu_bias.constraint, b_constraint
      )
      np.testing.assert_array_equal(
          layer.sigma_bias.constraint, b_constraint
      )
  
file_path: addons/tensorflow_addons/layers/tests/noisy_dense_test.py
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow import keras
  from tensorflow_addons.utils import test_utils
  from tensorflow_addons.layers.noisy_dense import NoisyDense
label_desc: Use image node_id 5 for calling a global function with example usage: test_noisy_dense_constraints() without return types