code: def _create_distribution_scatter_plot(
      xs,
      ys,
      mean=None,
      median=None,
      is_train=True,
      dataset_names: Tuple[str] = DEFAULT_DATASET_NAMES,
  ) -> List[go.Scatter]:
      traces = []
      name = dataset_names[0] if is_train else dataset_names[1]
      train_or_test = (
          DEFAULT_DATASET_NAMES[0]
          if is_train
          else DEFAULT_DATASET_NAMES[1]
      )
      traces.append(
          go.Scatter(
              x=xs,
              y=ys,
              name=f"{name} Dataset",
              fill="tozeroy",
              line=dict(color=colors[train_or_test], shape="linear"),
          )
      )
      if mean:
          y_mean_index = np.argmax(xs == mean)
          traces.append(
              go.Scatter(
                  x=[mean, mean],
                  y=[0, ys[y_mean_index]],
                  name=f"{name} Mean",
                  line=dict(color=colors[train_or_test], dash="dash"),
                  mode="lines+markers",
              )
          )
      if median:
          y_median_index = np.argmax(xs == median)
          traces.append(
              go.Scatter(
                  x=[median, median],
                  y=[0, ys[y_median_index]],
                  name=f"{name} Median",
                  line=dict(color=colors[train_or_test]),
                  mode="lines",
              )
          )
      return traces
  
file_path: deepchecks/deepchecks/utils/distribution/plot.py
imports: from functools import cmp_to_key
  from numbers import Number
  from typing import Any, Dict, List, Tuple, Union
  import numpy
  import pandas
  import plotly.graph_objs
  from plotly.basedatatypes import BaseTraceType
  from scipy.stats import gaussian_kde
  from typing_extensions import Literal
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.dataframes import un_numpy
  from deepchecks.utils.distribution.preprocessing import preprocess_2_cat_cols_to_same_bins
  from deepchecks.utils.plot import DEFAULT_DATASET_NAMES, colors
label_desc: Use image node_id 5 for calling a global function with example usage: _create_distribution_scatter_plot(xs, ys, mean, median, is_train, dataset_names) and returns: traces