def get_volume_metadata(volume):
 volume_metadata = volume.get('volume_metadata', {})
 return {item['key']: item['value'] for item in volume_metadata}

def get_volume_metadata ( volume ) : volume_metadata = volume . get ( 'volume_metadata' , { } ) return { item [ 'key' ] : item [ 'value' ] for item in volume_metadata }
return a dictionary of the metadata of the specified volume .