python example code for vtkPolygon.ComputeCentroid

I try to get the Centroid data for a input polydata figure.

Please let me know if there is python code for realizing my idea?

Many thanks in advance.

David.