def METHOD_NAME(datatype):
    """
    Given a datatype, return a transform for that type.
    """
    identity = lambda x: x
    transform = {
        'array': transform_array,
        'date': transform_date,
        'datetime': transform_datetime,
        'decimal': transform_decimal,
        'integer': transform_int,
        'small_integer': transform_int,
        'string': transform_unicode,
    }.get(datatype) or identity
    return functools.partial(evaluate_lazy_args, transform)