def compare_media_types(actual, expected):
 return compare_tree_to_dict(actual, expected, ('base', 'type'))

def compare_media_types ( actual , expected ) : return compare_tree_to_dict ( actual , expected , ( 'base' , 'type' ) )
compare xml media types .