def is_the_same_indel(self, other_record, ref_seq):
if self.CHROM != other_record.CHROM or len(self.ALT) > <NUM_LIT:1> or len(other_record.ALT) > <NUM_LIT:1> or self.is_snp() or other_record.is_snp():<EOL><INDENT>return False<EOL><DEDENT>if (len(self.REF) - len(self.ALT[<NUM_LIT:0>])) != (len(other_record.REF) - len(other_record.ALT[<NUM_LIT:0>])):<EOL><INDENT>return False<EOL><DEDENT>record1 = copy.copy(self)<EOL>record2 = copy.copy(other_record)<EOL>new_start = min(self.POS, other_record.POS)<EOL>new_end = max(self.ref_end_pos(), other_record.ref_end_pos())<EOL>record1.add_flanking_seqs(ref_seq, new_start, new_end)<EOL>record2.add_flanking_seqs(ref_seq, new_start, new_end)<EOL>return record1.REF == record2.REF and record1.ALT == record2.ALT<EOL>
Returns True iff this record and other_record are the "same"
        indel. At repeats, there is more than one way to report the same
        variant. eg:
        pos=42, ref=CAAA, alt=CAA
        pos=43, ref=AAA, alt=AA
        pos=44, ref=AA, alt=A