code: def plot_candlestick(
      ax,
      x,
      opens,
      highs,
      lows,
      closes,
      colorup="k",
      colordown="r",
      edgeup=None,
      edgedown=None,
      tickup=None,
      tickdown=None,
      width=1,
      tickwidth=1.25,
      edgeadjust=0.05,
      edgeshading=-10,
      alpha=1.0,
      label="_nolegend",
      fillup=True,
      filldown=True,
      **kwargs,
  ):
      chandler = CandlestickPlotHandler(
          ax,
          x,
          opens,
          highs,
          lows,
          closes,
          colorup,
          colordown,
          edgeup,
          edgedown,
          tickup,
          tickdown,
          width,
          tickwidth,
          edgeadjust,
          edgeshading,
          alpha,
          label,
          fillup,
          filldown,
          **kwargs,
      )
  
      # Return the collections. the barcol goes first because
      # is the larger,  has the dominant zorder and defines the legend
      return chandler.barcol, chandler.tickcol
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from ..utils.py3 import range, zip
  import matplotlib.collections
  import matplotlib.colors
  import matplotlib.legend
  import matplotlib.lines
  from .utils import shade_color
label_desc: Use image node_id 1 for calling a global function with example usage: plot_candlestick(ax, x, opens, highs, lows, closes, colorup, colordown, edgeup, edgedown, tickup, tickdown, width, tickwidth, edgeadjust, edgeshading, alpha, label, fillup, filldown) and returns: chandler,  chandler