def passes_filter_ensembl(segment):
    """Decide whether segment passes filters for ENSEMBL data."""
    if not segment.attrs['gene_biotype'] == 'protein_coding':
        return False
    support_level = segment.attrs.get('transcript_support_level', '')
    if not support_level.isdigit():
        return False
    if int(support_level) > 2:
        return False
    return True
