code: def test_box_horizontal(self):
      im = hopper("L")
      box = (20, 0, im.size[0] - 20, im.size[1])
      with self.count(1):
          # the same size, but different box
          with_box = im.resize(im.size, Image.BILINEAR, box)
      with self.count(2):
          cropped = im.crop(box).resize(im.size, Image.BILINEAR)
      assert_image_similar(with_box, cropped, 0.1)
  
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 5 for calling the TestCoreResamplePasses obj's underlying member method code with example usage: obj.test_box_horizontal() without return types