code: def test_slots_unique_eager():
      v1 = tf.Variable(1.0)
      v2 = tf.Variable(1.0)
      opt = lazy_adam.LazyAdam(1.0)
      opt.minimize(lambda: v1 + v2, var_list=[v1, v2])
      # There should be iteration, and two unique slot variables for v1 and v2.
      assert 5 == len(opt.variables())
      assert opt.variables()[0] == opt.iterations
  
file_path: addons/tensorflow_addons/optimizers/tests/lazy_adam_test.py
imports: import numpy
  import tensorflow
  from tensorflow_addons.optimizers import lazy_adam
  from tensorflow_addons.utils import test_utils
  import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_slots_unique_eager() without return types