code: def test_invalid_size(self):
      im = hopper()
  
      # Should not crash
      im.resize((100, 100))
  
      with pytest.raises(ValueError):
          im.resize((-100, 100))
  
      with pytest.raises(ValueError):
          im.resize((100, -100))
  
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 2 for calling the TestImagingResampleVulnerability obj's underlying member method code with example usage: obj.test_invalid_size() without return types