code: def explore_slices(data, cmap="gray"):
      from ipywidgets import interact
  
      N = len(data)
  
      @interact(plane=(0, N - 1))
      def display_slice(plane=34):
          fig, ax = plt.subplots(figsize=(20, 5))
  
          ax_3D = fig.add_subplot(133, projection="3d")
  
          show_plane(ax, data[plane], title=f"Plane {plane}", cmap=cmap)
          slice_in_3D(ax_3D, plane)
  
          plt.show()
  
      return display_slice
  
file_path: scikit-image/doc/examples/applications/plot_3d_image_processing.py
imports: import matplotlib.pyplot
  from mpl_toolkits.mplot3d.art3d import Poly3DCollection
  import numpy
  import plotly
  import plotly.express
  from skimage import exposure, util
  from skimage.data import cells3d
label_desc: Use image node_id 4 for calling a global function with example usage: explore_slices(data, cmap) and returns: display_slice