code: def sameAddr(self, ha, ha2) -> bool:
          
          if ha == ha2:
              return True
          if ha[1] != ha2[1]:
              return False
          return ha[0] in self.localips and ha2[0] in self.localips
docs: Check whether the two arguments correspond to the same address