code: def is_valid_boundaries(self, boundaries):
          
          if boundaries is not None:
              min_ = boundaries[0]
              for value in boundaries:
                  if value < min_:
                      return False
                  else:
                      min_ = value
              return True
          return False
docs: checks if the boundaries are in ascending order