code: def test_resize_and_crop(self):
      img = Image.open("gradio/test_data/test_image.png")
      new_img = processing_utils.resize_and_crop(img, (20, 20))
      assert new_img.size == (20, 20)
      with pytest.raises(ValueError):
          processing_utils.resize_and_crop(
              **{"img": img, "size": (20, 20), "crop_type": "test"}
          )
  
imports: import os
  import shutil
  import tempfile
  from copy import deepcopy
  from pathlib import Path
  from unittest.mock import patch
  import ffmpy
  import numpy
  import pytest
  from gradio_client import media_data
  from PIL import Image, ImageCms
  from gradio import processing_utils, utils
label_desc: Use image node_id 7 for calling the TestImagePreprocessing obj's underlying member method code with example usage: obj.test_resize_and_crop() without return types