def METHOD_NAME():
    cropper = instance_cropping.InstanceCropper.from_config(
        config=InstanceCroppingConfig(crop_size=16),
        crop_size=None,
    )
    assert cropper.crop_width == 16
    assert cropper.crop_height == 16
    cropper = instance_cropping.InstanceCropper.from_config(
        config=InstanceCroppingConfig(crop_size=16),
        crop_size=24,
    )
    assert cropper.crop_width == 16
    assert cropper.crop_height == 16
    with pytest.raises(ValueError):
        cropper = instance_cropping.InstanceCropper.from_config(
            config=InstanceCroppingConfig(crop_size=None),
            crop_size=None,
        )