def _extract_mime_types(registry):
    """
    Parse out MIME types from a defined registry (e.g. "application",
    "audio", etc).
    """
    mime_types = []
    records = registry.get('record', {})
    reg_name = registry.get('@id')
    for rec in records:
        mime = rec.get('file', {}).get('#text')
        if mime:
            mime_types.append(mime)
        else:
            mime = rec.get('name')
            if mime:
                hacked_mime = reg_name + '/' + mime
                mime_types.append(hacked_mime)
    return mime_types
