def reverse_complement_sequence(sequence, complementary_base_dict):
    """
    Finds the reverse complement of a sequence.

    Parameters
    ----------
    sequence : str
        The sequence to reverse complement.
    complementary_base_dict: dict
        A dict that maps bases (`str`) to their complementary bases
        (`str`).
    Returns
    -------
    str
        The reverse complement of the input sequence.

    """
    rev_comp_bases = [complementary_base_dict[b] for b in
                      sequence[::-1]]
    return ''.join(rev_comp_bases)