code: def match_blocks(hash_func, old_children, new_children):
      
      sm = difflib.SequenceMatcher(
          _is_junk,
          a=[hash_func(c) for c in old_children],
          b=[hash_func(c) for c in new_children],
      )
      return sm
docs: Use difflib to find matching blocks.