def METHOD_NAME(
    function: Callable[[T], R]
) -> Callable[[Optional[T]], Optional[R]]:
    def transform_column(value: Optional[T]) -> Optional[R]:
        if value is None:
            return value
        else:
            return function(value)
    return transform_column