<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def output_datacenter(gandi, datacenter, output_keys, justify=14):
 """ Helper to output datacenter information."""

    output_generic(gandi, datacenter, output_keys, justify)

    if 'dc_name' in output_keys:
        output_line(gandi, 'datacenter', datacenter['name'], justify)

    if 'status' in output_keys:
        deactivate_at = datacenter.get('deactivate_at')
        if deactivate_at:
            output_line(gandi, 'closing on',
                        deactivate_at.strftime('%d/%m/%Y'), justify)

        closing = []
        iaas_closed_for = datacenter.get('iaas_closed_for')
        if iaas_closed_for == 'ALL':
            closing.append('vm')

        paas_closed_for = datacenter.get('paas_closed_for')
        if paas_closed_for == 'ALL':
            closing.append('paas')

        if closing:
            output_line(gandi, 'closed for', ', '.join(closing), justify)