code: def plot_lbp_model(ax, binary_values):
      """Draw the schematic for a local binary pattern."""
      # Geometry spec
      theta = np.deg2rad(45)
      R = 1
      r = 0.15
      w = 1.5
      gray = "0.5"
  
      # Draw the central pixel.
      plot_circle(ax, (0, 0), radius=r, color=gray)
      # Draw the surrounding pixels.
      for i, facecolor in enumerate(binary_values):
          x = R * np.cos(i * theta)
          y = R * np.sin(i * theta)
          plot_circle(ax, (x, y), radius=r, color=str(facecolor))
  
      # Draw the pixel grid.
      for x in np.linspace(-w, w, 4):
          ax.axvline(x, color=gray)
          ax.axhline(x, color=gray)
  
      # Tweak the layout.
      ax.axis("image")
      ax.axis("off")
      size = w + 0.2
      ax.set_xlim(-size, size)
      ax.set_ylim(-size, size)
  
file_path: scikit-image/doc/examples/features_detection/plot_local_binary_pattern.py
imports: import numpy
  import matplotlib.pyplot
  from skimage.transform import rotate
  from skimage.feature import local_binary_pattern
  from skimage import data
  from skimage.color import label2rgb
label_desc: Use image node_id 2 for calling a global function with example usage: plot_lbp_model(ax, binary_values) without return types