def matches(self, other):
        """
        Returns true if two records 'match' - that is, they correspond to the same event from two perspectives.
        """
        return self.interaction == other.interaction and \
            self.direction != other.direction and \
            self.call_duration == other.call_duration and \
            abs((other.datetime - self.datetime).total_seconds()) < 30
dataset/ETHPy150Open yvesalexandre/bandicoot/bandicoot/core.py/Record.matches/swapped operands of `-`