code: def can_pair_with(self, other):
          
          a = ipaddress.ip_address(self.host)
          b = ipaddress.ip_address(other.host)
          return (
              self.component == other.component and
              self.transport.lower() == other.transport.lower() and
              a.version == b.version
          )
docs: A local candidate is paired with a remote candidate if and only if
          the two candidates have the same component ID and have the same IP
          address version.