<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resolve_lookups(variable, context, provider):
 """Resolve a set of lookups. Args: variable (:class:`stacker.variables.Variable`):
 The variable resolving it's lookups. context (:class:`stacker.context.Context`):
 stacker context provider (:class:`stacker.provider.base.BaseProvider`):
 subclass of the base provider Returns: dict: dict of Lookup -> resolved value """

    resolved_lookups = {}
    for lookup in variable.lookups:
        try:
            handler = LOOKUP_HANDLERS[lookup.type]
        except KeyError:
            raise UnknownLookupType(lookup)
        try:
            resolved_lookups[lookup] = handler(
                value=lookup.input,
                context=context,
                provider=provider,
            )
        except Exception as e:
            raise FailedVariableLookup(variable.name, lookup, e)
    return resolved_lookups