code: def assert_sync_iterations(opt, desired):
      sub_opts = [specs["optimizer"] for specs in opt.optimizer_specs]
      for o in [opt] + sub_opts:
          np.testing.assert_equal(o.iterations.numpy(), desired)
  
file_path: addons/tensorflow_addons/optimizers/tests/discriminative_layer_training_test.py
imports: from math import ceil
  from packaging.version import Version
  import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.optimizers.discriminative_layer_training import MultiOptimizer
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 3 for calling a global function with example usage: assert_sync_iterations(opt, desired) without return types