code: def test_binary_relational_scalar(self):
      im = pyvips.Image.black(16, 16) + 128
  
      assert (im > 128).avg() == 0
      assert (im >= 128).avg() == 255
      assert (im < 128).avg() == 0
      assert (im <= 128).avg() == 255
      assert (im == 128).avg() == 255
      assert (im != 128).avg() == 0
  
file_path: pyvips/tests/test_constants.py
imports: import pyvips
label_desc: Use image node_id 8 for calling the TestConstants obj's underlying member method code with example usage: obj.test_binary_relational_scalar() without return types