<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def apply_extra_context(extra_context, context):
 """ Adds items from extra_context dict to context. If a value in extra_context is callable, then it is called and the result is added to context. """

    for key, value in six.iteritems(extra_context):
        if callable(value):
            context[key] = value()
        else:
            context[key] = value