code: def my_bar(things_to_count, ax=None, color=None):
      """
      Parameters
      ----------
      things_to_count : list
          The list of elements to count
  
      color : string, default=None
          Color for the bars, must be a valid matplotlib color
  
      Examples
      --------
      .. plot::
  
          from sklearn_evaluation.plot._example import my_bar
          my_bar(["banana", "banana", "apple", "pineapple", "apple"],
                 color="lightblue")
      """
      # do not call plot here, from_raw_data already calls it!
      return MyBar.from_raw_data(
          things_to_count=things_to_count, color=color
      ).ax_
  
imports: from collections import Counter
  import numpy
  import matplotlib.pyplot
  from sklearn_evaluation import __version__
  from sklearn_evaluation.plot.plot import AbstractComposedPlot, AbstractPlot
label_desc: Use image node_id 1 for calling a global function with example usage: my_bar(things_to_count, ax, color) and returns: MyBar