code: def test_scale_offset(self):
      im = pyvips.Image.new_from_array([1, 2], 8, 2)
  
      assert im.width == 2
      assert im.height == 1
      assert im.bands == 1
      assert im.scale == 8
      assert im.offset == 2
      assert im.avg() == 1.5
  
file_path: pyvips/tests/test_constants.py
imports: import pyvips
label_desc: Use image node_id 4 for calling the TestConstants obj's underlying member method code with example usage: obj.test_scale_offset() without return types