code: def create_value_matrix(
      np_value_matrix,
      title="Heatmap Matrix",
      xlabels=None,
      ylabels=None,
      xtitle="X",
      ytitle="Y",
      custom_colors=True,
      series=None,
      comment=None,
      yaxis_reversed=False,
      layout_config=None,
  ):
      conf_matrix_plot = {
          "data": [
              {
                  "x": xlabels,
                  "y": ylabels,
                  "z": np_value_matrix.tolist(),
                  "type": "heatmap",
              }
          ],
          "layout": {
              "showlegend": True,
              "title": title
              if not comment
              else (title + "<br><sup>" + comment + "</sup>"),
              "xaxis": {
                  "title": xtitle,
              },
              "yaxis": {"title": ytitle},
              "name": series,
          },
      }
      if yaxis_reversed:
          conf_matrix_plot["layout"]["yaxis"]["autorange"] = "reversed"
  
      if custom_colors and not layout_config:
          scale, bar = _get_z_colorbar_data()
          conf_matrix_plot["data"][0].update({"colorscale": scale})
          conf_matrix_plot["data"][0].update({"colorbar": bar})
  
      if layout_config:
          conf_matrix_plot["data"][0] = merge_dicts(
              conf_matrix_plot["data"][0], layout_config
          )
          conf_matrix_plot["layout"] = merge_dicts(
              conf_matrix_plot["layout"], layout_config
          )
  
      return conf_matrix_plot
  
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 6 for calling a global function with example usage: create_value_matrix(np_value_matrix, title, xlabels, ylabels, xtitle, ytitle, custom_colors, series, comment, yaxis_reversed, layout_config) and returns: conf_matrix_plot