code: def test_sparse_sample():
      # Expected values are obtained from the previous implementation
      run_sparse_sample(
          iterations=200,
          expected=[[0.959333, 2.0], [3.0, 3.959632]],
          optimizer=RectifiedAdam(lr=1e-3),
      )
  
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 4 for calling a global function with example usage: test_sparse_sample() without return types