def METHOD_NAME(self, format='fasta', outfile=None):
    """Return the text representation of the sequences.
    :param format: The format for the output representation (default=FASTA).
    :param outfile: If given, the result is written to that file.
    """
    format = format.lower()
    if format in self.parsers:
        METHOD_NAME = self.parsers[format][1]
        args = self.parsers[format][2]
        return METHOD_NAME(self, outfile, **args)
    else:
        raise ValueError('Unsupported format: [%s]' % format)