code: def allclose(x, y):
      assert x.dtype == y.dtype
      rtol, atol = {
          torch.float32: (2e-2, 5e-3),
          torch.float16: (2e-2, 5e-3),
      }[x.dtype]
      return torch.allclose(x, y, rtol=rtol, atol=atol)
  
file_path: DeepSpeed/tests/unit/ops/quantizer/test_fake_quantization.py
imports: import torch
  import pytest
  import deepspeed
  from deepspeed.accelerator import get_accelerator
  from deepspeed.ops.op_builder import QuantizerBuilder
label_desc: Use image node_id 1 for calling a global function with example usage: allclose(x, y) and returns: torch