def METHOD_NAME(self, other):
    if len(self.local_lsn_by_region) != len(other):
        return False
    for key in self.local_lsn_by_region:
        region_id = key
        local_lsn1 = self.local_lsn_by_region[region_id]
        local_lsn2 = other[region_id] if region_id in other else None
        if local_lsn2 is not None:
            if local_lsn1 != local_lsn2:
                return False
    return True