code: def test_resize_image_with_bbox():
      box = [10, 20, 30, 40]
      label = ["chitra"]
      dummy = np.random.randn(100, 100, 3).astype("uint8")
      image = Chitra(dummy, bboxes=box, labels=label)
      image.resize_image_with_bbox((10, 10))
      rescaled_bounding_box = image.bboxes[0]
  
      assert np.isclose(rescaled_bounding_box.x1, 1)
      assert np.isclose(rescaled_bounding_box.y1, 2)
      assert np.isclose(rescaled_bounding_box.x2, 3)
      assert np.isclose(rescaled_bounding_box.y2, 4)
  
file_path: chitra/tests/image/test_image.py
imports: from unittest.mock import MagicMock
  import numpy
  from PIL import Image
  from chitra.image.image import Chitra, _cache_image
label_desc: Use image node_id 8 for calling a global function with example usage: test_resize_image_with_bbox() without return types