from typing import OrderedDict


def transform_volume(result):
    """Transform a volume to table output. """
    return OrderedDict([('Name', result['name']),
                        ('ResourceGroup', result['resourceGroup']),
                        ('Location', result['location']),
                        ('ProvisioningState', result.get('provisioningState')),
                        ('Provider', result.get('provider'))])