code: def cell_centers(dataset, vertex=True):
          
          alg = vtk.vtkCellCenters()
          alg.SetInputDataObject(dataset)
          alg.SetVertexCells(vertex)
          alg.Update()
          output = _get_output(alg)
          return output
docs: Generate points at the center of the cells in this dataset.
          These points can be used for placing glyphs / vectors.
  
          Parameters
          ----------
          vertex : bool
              Enable/disable the generation of vertex cells.