code: def test_compare():
      assert pixel(ImageMath.eval("min(A, B)", images)) == "I 1"
      assert pixel(ImageMath.eval("max(A, B)", images)) == "I 2"
      assert pixel(ImageMath.eval("A == 1", images)) == "I 1"
      assert pixel(ImageMath.eval("A == 2", images)) == "I 0"
  
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImageMath
label_desc: Use image node_id 9 for calling a global function with example usage: test_compare() without return types