code: def _np_row_to_plotly_data_item(
      np_row, label, xlabels=None, data_args=None
  ):
      """
      Convert a numpy data row into a Plotly chart data item
      :param np_row: numpy 1D data row
      :param label: Item label
      :param xlabels: The labels of the x axis.
      :param dict data_args: Plotly data arguments
      :return: A plotly data item dict.
      """
      bins = (
          list(range(np_row.shape[0]))
          if xlabels is None
          else list(xlabels)
      )
      # mylabels = ['"' + label + '"'] * len(bins)
      this_trace_data = {
          "name": label,
          "y": np_row.tolist(),
          "x": bins,
          # "text": mylabels,
          "type": "bar",
      }
      if data_args:
          this_trace_data.update(data_args)
      return this_trace_data
  
imports: import json
  import numpy
  from ..errors import UsageError
  from ..utilities.dicts import merge_dicts
  from attr import attrs, attrib
label_desc: Use image node_id 11 for calling a global function with example usage: _np_row_to_plotly_data_item(np_row, label, xlabels, data_args) and returns: this_trace_data