code: def assert_9points_image(self, im, expected):
      expected = [
          point[0] if im.mode == "L" else point[: len(im.mode)]
          for point in expected
      ]
      px = im.load()
      actual = [
          px[0, 0],
          px[self.size // 2, 0],
          px[self.size - 1, 0],
          px[0, self.size // 2],
          px[self.size // 2, self.size // 2],
          px[self.size - 1, self.size // 2],
          px[0, self.size - 1],
          px[self.size // 2, self.size - 1],
          px[self.size - 1, self.size - 1],
      ]
      assert actual == expected
  
imports: from __future__ import annotations
  import pytest
  from PIL import Image
  from .helper import CachedProperty, assert_image_equal
label_desc: Use image node_id 1 for calling the TestImagingPaste obj's underlying member method code with example usage: obj.assert_9points_image(im, expected) without return types