code: def test_wrong_arguments(self, resample):
      im = hopper()
      im.resize((32, 32), resample, (0, 0, im.width, im.height))
      im.resize((32, 32), resample, (20, 20, im.width, im.height))
      im.resize((32, 32), resample, (20, 20, 20, 100))
      im.resize((32, 32), resample, (20, 20, 100, 20))
  
      with pytest.raises(
          TypeError, match="must be sequence of length 4"
      ):
          im.resize((32, 32), resample, (im.width, im.height))
  
      with pytest.raises(ValueError, match="can't be negative"):
          im.resize((32, 32), resample, (-20, 20, 100, 100))
      with pytest.raises(ValueError, match="can't be negative"):
          im.resize((32, 32), resample, (20, -20, 100, 100))
  
      with pytest.raises(ValueError, match="can't be empty"):
          im.resize((32, 32), resample, (20.1, 20, 20, 100))
      with pytest.raises(ValueError, match="can't be empty"):
          im.resize((32, 32), resample, (20, 20.1, 100, 20))
      with pytest.raises(ValueError, match="can't be empty"):
          im.resize((32, 32), resample, (20.1, 20.1, 20, 20))
  
      with pytest.raises(ValueError, match="can't exceed"):
          im.resize((32, 32), resample, (0, 0, im.width + 1, im.height))
      with pytest.raises(ValueError, match="can't exceed"):
          im.resize((32, 32), resample, (0, 0, im.width, im.height + 1))
  
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 1 for calling the TestCoreResampleBox obj's underlying member method code with example usage: obj.test_wrong_arguments(resample) without return types