class_docstr: A shrinker that tries to make a sequence more sorted.
  
  Will not change the length or the contents, only tries to reorder
  the elements of the sequence.
class_docstr_tok: ["A","shrinker","that","tries","to","make","a","sequence","more","sorted",".","Will","not","change","the","length","or","the","contents",",","only","tries","to","reorder","the","elements","of","the","sequence","."]
docstr: Guarantees that for each i we have tried to swap index i with
  index i + 1.
  
  This uses an adaptive algorithm that works by sorting contiguous
  regions starting from each element.
docstr_tok: ["Guarantees","that","for","each","i","we","have","tried","to","swap","index","i","with","index","i","+","1",".","This","uses","an","adaptive","algorithm","that","works","by","sorting","contiguous","regions","starting","from","each","element","."]
code: def sort_regions(self):
      """Guarantees that for each i we have tried to swap index i with
      index i + 1.
  
      This uses an adaptive algorithm that works by sorting contiguous
      regions starting from each element.
      """
      i = 0
      while i + 1 < len(self.current):
          prefix = list(self.current[:i])
          k = find_integer(
              lambda k: i + k <= len(self.current)
              and self.consider(
                  prefix
                  + sorted(self.current[i : i + k], key=self.key)
                  + list(self.current[i + k :])
              )
          )
          i += k
  
file_path: catboost/contrib/python/hypothesis/py2/hypothesis/internal/conjecture/shrinking/ordering.py
imports: from __future__ import absolute_import, division, print_function
  from hypothesis.internal.compat import hrange
  from hypothesis.internal.conjecture.shrinking.common import Shrinker, find_integer
label_desc: Use image node_id 7 for calling the Ordering obj's underlying member method code with example usage: obj.sort_regions() without return types