code: def create_2d_scatter_series(
      np_row_wise,
      title="Scatter",
      series_name="Series",
      xtitle="x",
      ytitle="y",
      mode="lines",
      labels=None,
      comment=None,
      layout_config=None,
  ):
      """
      Create a 2D scatter Plotly graph from a 2 column numpy array
      :param np_row_wise: 2 column numpy data array [(x0,y0), (x1,y1) ...]
      :param title: Chart title
      :param series_name: Series name
      :param xtitle: X-axis title
      :param ytitle: Y-axis title
      :param mode: scatter type mode ('lines' / 'markers' / 'lines+markers')
      :param labels: label (text) per point on the scatter graph
      :param comment: comment underneath the title
      :param layout_config: optional dictionary for layout configuration, passed directly to plotly
      :return: Plotly chart dict.
      """
      plotly_obj = _plotly_scatter_layout_dict(  # noqa: F841
          title=title,
          xaxis_title=xtitle,
          yaxis_title=ytitle,
          comment=comment,
      )
      assert np_row_wise.ndim == 2, "Expected a 2D numpy array"
      assert (
          np_row_wise.shape[1] == 2
      ), "Expected two columns X/Y e.g. [(x0,y0), (x1,y1) ...]"
  
      # this_scatter_data = {
      #     "name": series_name,
      #     "x": np_row_wise[:, 0].tolist(),
      #     "y": np_row_wise[:, 1].tolist(),
      #     "mode": mode,
      #     "text": labels,
      #     "type": "scatter"
      # }
      # plotly_obj["data"].append(this_scatter_data)
      # return plotly_obj
      series = SeriesInfo(
          name=series_name, data=np_row_wise, labels=labels
      )
  
      return create_line_plot(
          title=title,
          series=[series],
          xtitle=xtitle,
          ytitle=ytitle,
          mode=mode,
          comment=comment,
          MAX_SIZE=100000,
          layout_config=layout_config,
      )
  
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 4 for calling a global function with example usage: create_2d_scatter_series(np_row_wise, title, series_name, xtitle, ytitle, mode, labels, comment, layout_config) and returns: create_line_plot