code: def test_exclude_weight_decay_sgdw():
      optimizer = weight_decay_optimizers.SGDW(
          learning_rate=0.01,
          weight_decay=1e-4,
          exclude_from_weight_decay=["var1"],
      )
      var0 = tf.Variable([], name="var0")
      var1 = tf.Variable([], name="var1")
      var1_weight = tf.Variable([], name="var1_weight")
  
      optimizer._set_decay_var_list([var0, var1, var1_weight])
      assert optimizer._do_use_weight_decay(var0)
      assert not optimizer._do_use_weight_decay(var1)
      assert not optimizer._do_use_weight_decay(var1_weight)
  
imports: import importlib
  import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.utils import test_utils
  from tensorflow_addons.optimizers import weight_decay_optimizers
label_desc: Use image node_id 20 for calling a global function with example usage: test_exclude_weight_decay_sgdw() without return types