code: def run_cmp(message, im, x, y, fn):
      a = im(x, y)
      v1 = fn(a)
      im2 = fn(im)
      v2 = im2(x, y)
      assert_almost_equal_objects(v1, v2, msg=message)
  
file_path: pyvips/tests/helpers/helpers.py
imports: import os
  import sys
  import tempfile
  import pytest
  import pyvips
label_desc: Use image node_id 10 for calling a global function with example usage: run_cmp(message, im, x, y, fn) without return types