def _elastic_pool_edition_table_format(editions):
    """
    Formats an elastic pool editions as summary results for display with "-o table".
    """
    from collections import OrderedDict
    from .custom import is_available
    for e in editions:
        for slo in e['supportedElasticPoolPerformanceLevels']:
            sku = slo['sku']
            yield OrderedDict([('sku', sku['name']), ('edition', e['name']),
                ('family', sku['family'] or ' '), ('capacity', sku[
                'capacity']), ('unit', slo['performanceLevel']['unit']), (
                'available', is_available(slo['status']))])
