code: def test_exclude_weight_decay():
      opt = lamb.LAMB(
          0.01, weight_decay=0.01, exclude_from_weight_decay=["var1"]
      )
      assert opt._do_use_weight_decay(tf.Variable([], name="var0"))
      assert not opt._do_use_weight_decay(tf.Variable([], name="var1"))
      assert not opt._do_use_weight_decay(
          tf.Variable([], name="var1_weight")
      )
  
imports: import numpy
  from numpy import linalg
  import pytest
  import tensorflow
  from tensorflow_addons.optimizers import lamb
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 12 for calling a global function with example usage: test_exclude_weight_decay() without return types