code: def test_overflow(self):
      im = hopper("L")
      size_too_large = 0x100000008 // 4
      size_normal = 1000  # unimportant
      for xsize, ysize in (
          (size_too_large, size_normal),
          (size_normal, size_too_large),
      ):
          with pytest.raises(MemoryError):
              # any resampling filter will do here
              im.im.resize((xsize, ysize), Image.BILINEAR)
  
imports: 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 1 for calling the TestImagingResampleVulnerability obj's underlying member method code with example usage: obj.test_overflow() without return types