code: def legend_artist(self, legend, orig_handle, fontsize, handlebox):
      x0 = handlebox.xdescent
      y0 = handlebox.ydescent
      width = handlebox.width / len(self.legend_opens)
      height = handlebox.height
  
      # Generate the x axis coordinates (handlebox based)
      xs = [
          x0 + width * (i + 0.5) for i in range(len(self.legend_opens))
      ]
  
      barcol, tickcol = self.barcollection(
          xs,
          self.legend_opens,
          self.legend_highs,
          self.legend_lows,
          self.legend_closes,
          width=width,
          tickwidth=2,
          scaling=height,
          bot=y0,
      )
  
      barcol.set_transform(handlebox.get_transform())
      handlebox.add_artist(barcol)
      tickcol.set_transform(handlebox.get_transform())
      handlebox.add_artist(tickcol)
  
      return barcol, 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 2 for calling the CandlestickPlotHandler obj's underlying member method code with example usage: obj.legend_artist(legend, orig_handle, fontsize, handlebox) and returns: barcol,  tickcol