<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_complex_gateway_info(node_params, output_element):
 """ Adds ComplexGateway node attributes to exported XML element :param node_params: dictionary with given complex gateway parameters, :param output_element: object representing BPMN XML 'complexGateway' element. """

        output_element.set(consts.Consts.gateway_direction, node_params[consts.Consts.gateway_direction])
        if consts.Consts.default in node_params and node_params[consts.Consts.default] is not None:
            output_element.set(consts.Consts.default, node_params[consts.Consts.default])