code: def create_colorbar_barchart_for_check(
      x: np.ndarray,
      y: np.ndarray,
      ylabel: str = "Result",
      xlabel: str = "Features",
      color_map: str = "RdYlGn_r",
      start: float = 0,
      stop: float = 1.0,
      tick_steps: float = 0.1,
      color_label: str = "Color",
      color_shift_midpoint: float = 0.5,
      check_name: str = "",
  ):
      """Output a colorbar barchart using matplotlib.
  
      Parameters
      ----------
      x: np.ndarray
          array containing x axis data.
      y: np.ndarray
          array containing y axis data.
      ylabel: str , default: Result
          Name of y axis
      xlabel : str , default: Features
          Name of x axis
      color_map : str , default: RdYlGn_r
          color_map name.
          See https://matplotlib.org/stable/tutorials/colors/colormaps.html for more details
      start : float , default: 0
          start of y axis ticks
      stop : float , default: 1.0
          end of y axis ticks
      tick_steps : float , default: 0.1
          step to y axis ticks
      color_shift_midpoint : float , default: 0.5
          midpoint of color map
      check_name : str , default: ''
          name of the check that called this function
  
      """
      fig, ax = plt.subplots(
          figsize=(15, 4)
      )  # pylint: disable=unused-variable
  
      try:
          my_cmap = plt.cm.get_cmap(color_map + check_name)
      except ValueError:
          my_cmap = plt.cm.get_cmap(color_map)
          my_cmap = shifted_color_map(
              my_cmap,
              start=start,
              midpoint=color_shift_midpoint,
              stop=stop,
              name=color_map + check_name,
          )
  
      cmap_colors = my_cmap(list(y))
      _ = ax.bar(
          x, y, color=cmap_colors
      )  # pylint: disable=unused-variable
  
      sm = ScalarMappable(cmap=my_cmap, norm=plt.Normalize(start, stop))
      sm.set_array([])
  
      cbar = plt.colorbar(sm)
      cbar.set_label(color_label, rotation=270, labelpad=25)
  
      plt.yticks(np.arange(start, stop, tick_steps))
      plt.ylabel(ylabel)
      plt.xlabel(xlabel)
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.cm import ScalarMappable
  from matplotlib.colors import LinearSegmentedColormap
label_desc: Use image node_id 1 for calling a global function with example usage: create_colorbar_barchart_for_check(x, y, ylabel, xlabel, color_map, start, stop, tick_steps, color_label, color_shift_midpoint, check_name) without return types