<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sameAddr(self, ha, ha2) -> bool: """ Check whether the two arguments correspond to the same address """

        if ha == ha2:
            return True
        if ha[1] != ha2[1]:
            return False
        return ha[0] in self.localips and ha2[0] in self.localips