Returns the nexml2json attribute or the default code for badgerfish

def detect_nexson_version(blob):
    """Returns the nexml2json attribute or the default code for badgerfish"""
    n = get_nexml_el(blob)
    assert isinstance(n, dict)
    return n.get('@nexml2json', BADGER_FISH_NEXSON_VERSION)