code: def compare_reduce_with_box(im, factor):
      box = (11, 13, 146, 164)
      reduced = im.reduce(factor, box=box)
      reference = im.crop(box).reduce(factor)
      assert reduced == reference
  
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImageMath, ImageMode
  from .helper import convert_to_comparable, skip_unless_feature
label_desc: Use image node_id 7 for calling a global function with example usage: compare_reduce_with_box(im, factor) without return types