<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def coerce_types(**kwargs):
 """ Preprocessing decorator that applies type coercions. Parameters **kwargs : dict[str -> (type, callable)] Keyword arguments mapping function parameter names to pairs of (from_type, to_type). Examples -------- (1, '3') """

    def _coerce(types):
        return coerce(*types)

    return preprocess(**valmap(_coerce, kwargs))