def get_sitk_interpolator(interpolation: str) -> int:
    if (not isinstance(interpolation, str)):
        message = f'Interpolation must be a string, not {type(interpolation)}'
        raise ValueError(message)
    string = getattr(Interpolation, interpolation.upper()).value
    return getattr(sitk, string)
def get_sitk_interpolator(interpolation: str) -> int:
    if (not isinstance(interpolation, str)):
        message = f'Interpolation must be a string, not {type(interpolation)}'
        raise ValueError(message)
    string = getattr(Interpolation, interpolation.upper()).value
    return getattr(sitk, string)