code: def test_num_updates_valid():
      for num_updates in [1, tf.Variable(1)]:
          MovingAverage("sgd", num_updates=num_updates)
  
imports: import numpy
  import pytest
  import tensorflow
  from packaging.version import Version
  from tensorflow_addons.optimizers import MovingAverage
label_desc: Use image node_id 3 for calling a global function with example usage: test_num_updates_valid() without return types