code: def map_data_single_trace_scatters(
      x: np.ndarray,
      y: np.ndarray,
      legend_label: str,
      xlabel: str = "Trial progression",
      ylabel: str = "Trial performance",
      plot_stopping_marker: bool = False,
      opacity: float = 0.5,
      trace_color: Tuple[int] = COLORS.STEELBLUE.value,
      visible: bool = True,
  ) -> List[go.Scatter]:
      """Plot a single trial's trace from map data.
  
      Args:
          x: An array of x-values for a single trace.
          y: An array of y-values for a single trace.
          legend_label: Label for this trace used in the legend.
          x_label: Label for the x-axis.
          y_label: Label for the y-axis.
          plot_stopping_marker: Whether to add a red early stopping
              marker for the last data point in this trace. If True,
              this function returns two go.Scatter objects, one for
              the main trace and another for the early stopping marker.
          opacity: Opacity of this trace (excluding early stopping marker).
          trace_color: Color of trace.
          visible: Whether the trace should be visible or not.
      """
      # NOTE: In the hovertemplate, we are not using float formatting for `x`
      # and `y` due to autoformatting + this allows `x` to be time data.
      scatters = [
          go.Scatter(
              name=legend_label,
              text=legend_label,
              x=x,
              y=y,
              mode="lines+markers",
              line={"color": rgba(trace_color)},
              opacity=opacity,
              hovertemplate=f"{legend_label}<br>"
              + f"{xlabel}: "
              + "%{x}<br>"
              + f"{ylabel}: "
              + "%{y}<extra></extra>",
              visible=visible,
          )
      ]
      if plot_stopping_marker:
          scatters.append(
              go.Scatter(
                  text=legend_label + " stopped",
                  mode="markers",
                  x=x[-1:],
                  y=y[-1:],
                  marker={"color": "Red", "size": 10},
                  showlegend=False,
                  opacity=1.0,
                  hovertemplate=f"{legend_label} stopped<br>"
                  + f"{xlabel}: "
                  + "%{x}<br>"
                  + f"{ylabel}: "
                  + "%{y}<extra></extra>",
                  visible=visible,
              )
          )
      return scatters
  
imports: from datetime import datetime, timedelta
  from typing import Any, Dict, List, Optional, Tuple, Union
  import numpy
  import pandas
  import plotly.graph_objs
  from ax.core.experiment import Experiment
  from ax.plot.base import AxPlotConfig, AxPlotTypes
  from ax.plot.color import COLORS, DISCRETE_COLOR_SCALE, rgba
  from ax.utils.common.timeutils import timestamps_in_range
  from ax.utils.common.typeutils import not_none
  from plotly import express
  from plotly.express.colors import sample_colorscale
label_desc: Use image node_id 1 for calling a global function with example usage: map_data_single_trace_scatters(x, y, legend_label, xlabel, ylabel, plot_stopping_marker, opacity, trace_color, visible) and returns: scatters