import difflib


def get_diff_opcodes(nb1_cell_hashes, nb2_cell_hashes):
    """
    Apply the SequenceMatcher to return op codes
    for converting notebook 1 into notebook 2.
    """
    m = difflib.SequenceMatcher(a=nb1_cell_hashes,
                                b=nb1_cell_hashes)
    return m.get_opcodes()