code: def overlaps(self, other):
          
          return self.network in other or self.broadcast in other or (
              other.network in self or other.broadcast in self)
docs: Tell if self is partly contained in other.