def METHOD_NAME(sequence, matrix=None, bin_path="tantan"):
    """
    Mask repeat regions of the given input sequence(s).
    Parameters
    ----------
    sequence : (list of) NucleotideSequence or ProteinSequence
        The sequence(s) to be masked.
        Either a single sequence or multiple sequences can be masked.
        Masking multiple sequences in a single run decreases the
        run time compared to multiple runs with a single sequence.
        All sequences must be of the same type.
    matrix : SubstitutionMatrix, optional
        The substitution matrix to use for repeat identification.
        A sequence segment is considered to be a repeat of another
        segment, if the substitution score between these segments is
        greater than a threshold value.
    bin_path : str, optional
        Path of the *tantan* binary.
    Returns
    -------
    repeat_mask : (list of) ndarray, shape=(n,), dtype=bool
        A boolean mask that is true for each sequence position that
        is identified as repeat.
        If a list of sequences were given as input, a list of masks
        is returned instead.
    """
    app = TantanApp(sequence, matrix, bin_path)
    app.start()
    app.join()
    return app.get_mask(