class_docstr: Create and store a set of contour lines or filled regions for
  a triangular grid.
  
  User-callable method: clabel
  
  Useful attributes:
    ax:
      the axes object in which the contours are drawn
    collections:
      a silent_list of LineCollections or PolyCollections
    levels:
      contour levels
    layers:
      same as levels for line contours; half-way between
      levels for filled contours.  See _process_colors method.
class_docstr_tok: ["Create","and","store","a","set","of","contour","lines","or","filled","regions","for","a","triangular","grid",".","User-callable","method",":","clabel","Useful","attributes",":","ax",":","the","axes","object","in","which","the","contours","are","drawn","collections",":","a","silent_list","of","LineCollections","or","PolyCollections","levels",":","contour","levels","layers",":","same","as","levels","for","line","contours",";","half-way","between","levels","for","filled","contours",".","See","_process_colors","method","."]
docstr: Create and return allsegs and allkinds by calling underlying C code.
docstr_tok: ["Create","and","return","allsegs","and","allkinds","by","calling","underlying","C","code","."]
code: def _get_allsegs_and_allkinds(self):
      """
      Create and return allsegs and allkinds by calling underlying C code.
      """
      allsegs = []
      if self.filled:
          lowers, uppers = self._get_lowers_and_uppers()
          allkinds = []
          for lower, upper in zip(lowers, uppers):
              (
                  segs,
                  kinds,
              ) = self.cppContourGenerator.create_filled_contour(
                  lower, upper
              )
              allsegs.append([segs])
              allkinds.append([kinds])
      else:
          allkinds = None
          for level in self.levels:
              segs = self.cppContourGenerator.create_contour(level)
              allsegs.append(segs)
      return allsegs, allkinds
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/tri/tricontour.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from matplotlib.contour import ContourSet
  from matplotlib.tri.triangulation import Triangulation
  import matplotlib._tri
  import numpy
label_desc: Use image node_id 3 for calling the TriContourSet obj's underlying member method code with example usage: obj._get_allsegs_and_allkinds() and returns: allsegs,  allkinds