code: def compare(obj, niter, expect, **kwargs):
      np.testing.assert_allclose(expect, obj.__call__(niter), **kwargs)
  
file_path: gluon-cv/tests/unittests/test_lr_scheduler.py
imports: from __future__ import print_function
  from __future__ import division
  import os.path
  import mxnet
  import numpy
  import gluoncv
  from mxnet import autograd, gluon
  from math import pi, cos
  from gluoncv.utils import LRScheduler, LRSequential
label_desc: Use image node_id 1 for calling a global function with example usage: compare(obj, niter, expect) without return types