<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def export(name: str, value: Any):
 """ Exports a named stack output. :param str name: The name to assign to this output. :param Any value: The value of this output. """

    stack = get_root_resource()
    if stack is not None:
        stack.output(name, value)