code: def test_args_factor(size, expected):
      im = Image.new("L", (10, 10))
      assert expected == im.reduce(size).size
  
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 1 for calling a global function with example usage: test_args_factor(size, expected) without return types