code: def shrink_to_point(labels, fill):
      """
      Remove all pixels but one from filled objects.
      If `fill` = False, thin objects with holes to loops.
      """
  
      if fill:
          labels = centrosome.cpmorphology.fill_labeled_holes(labels)
      return centrosome.cpmorphology.binary_shrink(labels)
  
imports: from typing import Literal
  import centrosome.cpmorphology
  import numpy
  import scipy.ndimage
  import skimage.morphology
  import mahotas
label_desc: Use image node_id 1 for calling a global function with example usage: shrink_to_point(labels, fill) and returns: centrosome