def METHOD_NAME(event_name, bookmark):
    """
    Emit events for a bookmark.
    Arguments:
        event_name: name of event to track
        bookmark: Bookmark object
    """
    tracker.emit(
        event_name,
        {
            'course_id': str(bookmark.course_key),
            'bookmark_id': bookmark.resource_id,
            'component_type': bookmark.usage_key.block_type,
            'component_usage_id': str(bookmark.usage_key),
        }
    )