def METHOD_NAME(func, resolution):
    img = func(resolution=resolution)
    assert isinstance(img, Nifti1Image)
    if resolution is None:
        expected_shape = (197, 233, 189)
        expected_zooms = (1.0, 1.0, 1.0)
    elif resolution == 2:
        expected_shape = (99, 117, 95)
        expected_zooms = (2.0, 2.0, 2.0)
    assert img.shape == expected_shape
    assert img.header.get_zooms() == expected_zooms