def METHOD_NAME(transformation: Callable, model: Base, fields: List[str]) -> Base:
    """
    Takes a callable and returns a transformed object.
    """
    for name, value in {field: getattr(model, field) for field in fields}.items():
        if value:
            setattr(model, name, transformation(value))
    return model