code: def assert_almost_equal_objects(a, b, threshold=0.0001, msg=""):
      # print 'assertAlmostEqualObjects %s = %s' % (a, b)
      assert all(
          [
              pytest.approx(x, abs=threshold) == y
              for x, y in zip_expand(a, b)
          ]
      ), msg
  
file_path: pyvips/tests/helpers/helpers.py
imports: import os
  import sys
  import tempfile
  import pytest
  import pyvips
label_desc: Use image node_id 7 for calling a global function with example usage: assert_almost_equal_objects(a, b, threshold, msg) without return types