code: def contains_version(self, version):
          
          if len(self.bounds) < 5:
              # not worth overhead of binary search
              for bound in self.bounds:
                  i = bound.version_containment(version)
                  if i == 0:
                      return True
                  if i == -1:
                      return False
          else:
              _, contains = self._contains_version(version)
              return contains
  
          return False
docs: Returns True if version is contained in this range.