code: def test_sanity():
      im = hopper()
  
      with pytest.raises(ValueError):
          im.point(list(range(256)))
      im.point(list(range(256)) * 3)
      im.point(lambda x: x)
  
      im = im.convert("I")
      with pytest.raises(ValueError):
          im.point(list(range(256)))
      im.point(lambda x: x * 1)
      im.point(lambda x: x + 1)
      im.point(lambda x: x * 1 + 1)
      with pytest.raises(TypeError):
          im.point(lambda x: x - 1)
      with pytest.raises(TypeError):
          im.point(lambda x: x / 1)
  
imports: import pytest
  from .helper import assert_image_equal, hopper
label_desc: Use image node_id 1 for calling a global function with example usage: test_sanity() without return types