code: def resolve_lookups(variable, context, provider):
      
      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
docs: 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