code: def check_equal(first, second, atol=1e-2, verbose=False):
      x = first.detach().numpy()
      y = second.detach().numpy()
      if verbose:
          print("x = {}".format(x.flatten()))
          print("y = {}".format(y.flatten()))
          print("-" * 80)
      np.testing.assert_allclose(
          x, y, err_msg="param-update mismatch!", atol=atol
      )
  
file_path: DeepSpeed/tests/unit/ops/adagrad/test_cpu_adagrad.py
imports: import torch
  import numpy
  import pytest
  import deepspeed
  from deepspeed.ops.adagrad import DeepSpeedCPUAdagrad
  from deepspeed.accelerator import get_accelerator
  from deepspeed.ops.op_builder import CPUAdagradBuilder
  from unit.common import DistributedTest
label_desc: Use image node_id 1 for calling a global function with example usage: check_equal(first, second, atol, verbose) without return types