code: def assert_predictions_are_close(y1, y2):
      if isinstance(y1, dict):
          for k in y1:
              assert_predictions_are_close(y1[k], y2[k])
      elif isinstance(y1, float):
          assert math.isclose(y1, y2, rel_tol=1e-06)
      else:
          assert y1 == y2
  
imports: from __future__ import annotations
  import inspect
  import math
label_desc: Use image node_id 1 for calling a global function with example usage: assert_predictions_are_close(y1, y2) without return types