code: def assert_allclose(
      x, y, err_msg="", rtol=1e-7, atol=0, equal_nan=True
  ):
      x = _maybe_convert_to_numpy(x)
      y = _maybe_convert_to_numpy(y)
      npt.assert_allclose(
          x,
          y,
          rtol=rtol,
          atol=atol,
          equal_nan=equal_nan,
          err_msg=err_msg,
      )
  
file_path: summarize-from-feedback/summarize_from_feedback/utils/assertions.py
imports: import numpy
  import numpy.testing
  import torch
  from summarize_from_feedback.utils.torch_utils import to_numpy
label_desc: Use image node_id 4 for calling a global function with example usage: assert_allclose(x, y, err_msg, rtol, atol, equal_nan) without return types