<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def filter_taxa(fasta_path: 'path to fasta input',
                taxids: 'comma delimited list of taxon IDs',
                unclassified: 'pass sequences unclassified at superkingdom level >(0)' = False,
                discard: 'discard specified taxa' = False,
                warnings: 'show warnings' = False):
    '''
    Customisable filtering of tictax flavoured fasta files
    '''
    configure_warnings(warnings)
    records = SeqIO.parse(fasta_path, 'fasta')
    filtered_records = tictax.filter_taxa(records,
                                          map(int, taxids.split(',')),
                                          unclassified,
                                          discard)
    SeqIO.write(filtered_records, sys.stdout, 'fasta')