class_docstr: Create centroid.
class_docstr_tok: ["Create","centroid","."]
code: def __init__(self, shrink=0):
      self.shrink = shrink
  
imports: import itertools
  import time
  import numpy
  import pandas
  from sklearn.neighbors import NearestCentroid
  from sktime.datatypes import convert
  from sktime.datatypes._panel._convert import from_3d_numpy_to_nested
  from sktime.transformations.base import BaseTransformer
label_desc: Use image node_id 1 to create a new _shrunk_centroid object  with example: obj = _shrunk_centroid(shrink)