code: def assert_all_close(
      ret_np,
      ret_from_gt_np,
      backend: str,
      rtol=1e-05,
      atol=1e-08,
      ground_truth_backend="TensorFlow",
  ):
      """Match the ret_np and ret_from_gt_np inputs element-by-element to ensure
      that they are the same.
  
      Parameters
      ----------
      ret_np
          Return from the framework to test. Ivy Container or Numpy Array.
      ret_from_gt_np
          Return from the ground truth framework. Ivy Container or Numpy Array.
      rtol
          Relative Tolerance Value.
      atol
          Absolute Tolerance Value.
      ground_truth_backend
          Ground Truth Backend Framework.
  
      Returns
      -------
      None if the test passes, else marks the test as failed.
      """
      ret_dtype = str(ret_np.dtype)
      ret_from_gt_dtype = str(ret_from_gt_np.dtype).replace(
          "longlong", "int64"
      )
      assert ret_dtype == ret_from_gt_dtype, (
          f"the ground truth framework {ground_truth_backend} returned a"
          f" {ret_from_gt_dtype} datatype while the backend {backend} returned a"
          f" {ret_dtype} datatype"
      )
      # TODO enable
      # if ivy.is_ivy_container(ret_np) and ivy.is_ivy_container(ret_from_gt_np):
      #     ivy.Container.cont_multi_map(assert_all_close, [ret_np, ret_from_gt_np])
      # else:
      if (
          ret_np.dtype == "bfloat16"
          or ret_from_gt_np.dtype == "bfloat16"
      ):
          ret_np = ret_np.astype("float64")
          ret_from_gt_np = ret_from_gt_np.astype("float64")
      assert np.allclose(
          np.nan_to_num(ret_np),
          np.nan_to_num(ret_from_gt_np),
          rtol=rtol,
          atol=atol,
      ), (
          f" the results from backend {backend} "
          f"and ground truth framework {ground_truth_backend} "
          f"do not match\n {ret_np}!={ret_from_gt_np} \n\n"
      )
  
file_path: ivy/ivy_tests/test_ivy/helpers/assertions.py
imports: import ivy
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: assert_all_close(ret_np, ret_from_gt_np, backend, rtol, atol, ground_truth_backend) without return types