code: def check_case(self, case, sample):
      s_px = sample.load()
      c_px = case.load()
      for y in range(case.size[1]):
          for x in range(case.size[0]):
              if c_px[x, y] != s_px[x, y]:
                  message = (
                      f"\nHave: \n{self.serialize_image(case)}\n"
                      f"\nExpected: \n{self.serialize_image(sample)}"
                  )
                  assert s_px[x, y] == c_px[x, y], message
  
imports: from __future__ import annotations
  from contextlib import contextmanager
  import pytest
  from PIL import Image, ImageDraw
  from .helper import assert_image_equal, assert_image_similar, hopper, mark_if_feature_version
label_desc: Use image node_id 3 for calling the TestImagingCoreResampleAccuracy obj's underlying member method code with example usage: obj.check_case(case, sample) without return types