code: def scatter(
      x,
      y,
      xlabel=LABEL_DEFAULT,
      ylabel=LABEL_DEFAULT,
      title=LABEL_DEFAULT,
  ):
      """
      Plots the data in `x` on the X axis and the data in `y` on the Y axis
      in a 2d scatter plot, and returns the resulting Plot object.
  
      The function supports SArrays of dtypes: int, float.
  
      Parameters
      ----------
      x : SArray
        The data to plot on the X axis of the scatter plot.
        Must be numeric (int/float).
      y : SArray
        The data to plot on the Y axis of the scatter plot. Must be the same
        length as `x`.
        Must be numeric (int/float).
      xlabel : str (optional)
        The text label for the X axis. Defaults to "X".
      ylabel : str (optional)
        The text label for the Y axis. Defaults to "Y".
      title : str (optional)
        The title of the plot. Defaults to LABEL_DEFAULT. If the value is
        LABEL_DEFAULT, the title will be "<xlabel> vs. <ylabel>". If the value
        is None, the title will be omitted. Otherwise, the string passed in as the
        title will be used as the plot title.
  
      Returns
      -------
      out : Plot
        A :class: Plot object that is the scatter plot.
  
      Examples
      --------
      Make a scatter plot.
  
      >>> x = turicreate.SArray([1,2,3,4,5])
      >>> y = x * 2
      >>> scplt = turicreate.visualization.scatter(x, y)
      """
      if (
          not isinstance(x, tc.data_structures.sarray.SArray)
          or not isinstance(y, tc.data_structures.sarray.SArray)
          or x.dtype not in [int, float]
          or y.dtype not in [int, float]
      ):
          raise ValueError(
              "turicreate.visualization.scatter supports "
              + "SArrays of dtypes: int, float"
          )
      # legit input
      title = _get_title(title)
      plt_ref = tc.extensions.plot_scatter(x, y, xlabel, ylabel, title)
      return Plot(_proxy=plt_ref)
  
file_path: turicreate/src/python/turicreate/visualization/show.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from ._plot import Plot, LABEL_DEFAULT
  import turicreate
label_desc: Use image node_id 4 for calling a global function with example usage: scatter(x, y, xlabel, ylabel, title) and returns: Plot