code: def test_weight_decay_rate_deprecation():
      with pytest.deprecated_call():
          opt = lamb.LAMB(0.01, weight_decay_rate=0.01)
          config = opt.get_config()
          assert config["weight_decay"] == 0.01
  
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 15 for calling a global function with example usage: test_weight_decay_rate_deprecation() without return types