code: def test_dense_sample_with_weight_decay():
      # Expected values are obtained from the previous implementation
      run_dense_sample(
          iterations=100,
          expected=[[0.984775, 1.983276], [2.983125, 3.982076]],
          optimizer=RectifiedAdam(lr=1e-3, weight_decay=0.01),
      )
  
imports: import numpy
  import pytest
  from packaging.version import Version
  import tensorflow
  from tensorflow_addons.optimizers import RectifiedAdam, Lookahead
label_desc: Use image node_id 7 for calling a global function with example usage: test_dense_sample_with_weight_decay() without return types