code: def allclose(x, y):
      assert x.dtype == y.dtype
      rtol, atol = get_tolerances()[x.dtype]
      return torch.allclose(x, y, rtol=rtol, atol=atol)
  
file_path: DeepSpeed/tests/unit/ops/transformer/inference/test_residual_add.py
imports: import pytest
  import torch
  import deepspeed
  from deepspeed.accelerator import get_accelerator
  from deepspeed.ops.op_builder import InferenceBuilder
  from .inference_test_utils import get_dtypes
label_desc: Use image node_id 2 for calling a global function with example usage: allclose(x, y) and returns: torch