code: def medial_axis(image):
      if image.ndim > 2 and image.shape[-1] in (3, 4):
          raise ValueError(
              "Convert image to grayscale or use medialaxis module"
          )
      if image.ndim > 2 and image.shape[-1] not in (3, 4):
          raise ValueError(
              "Process 3D images plane-wise or use the medialaxis module"
          )
      return skimage.morphology.medial_axis(image)
  
imports: import numpy
  import skimage.color
  import skimage.morphology
  import centrosome
  import centrosome.threshold
  import scipy
  import matplotlib
label_desc: Use image node_id 2 for calling a global function with example usage: medial_axis(image) and returns: skimage