code: def test_args_factor():
      im = Image.new("L", (10, 10))
  
      assert (4, 4) == im.reduce(3).size
      assert (4, 10) == im.reduce((3, 1)).size
      assert (10, 4) == im.reduce((1, 3)).size
  
      with pytest.raises(ValueError):
          im.reduce(0)
      with pytest.raises(TypeError):
          im.reduce(2.0)
      with pytest.raises(ValueError):
          im.reduce((0, 10))
  
file_path: pillow-simd/Tests/test_image_reduce.py
imports: 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() without return types