code: def _scatter_matrix(
      self,
      theme=None,
      bins=10,
      color="grey",
      size=2,
      asFigure=False,
      **iplot_kwargs,
  ):
      """
      Displays a matrix with scatter plot for each pair of
      Series in the DataFrame.
      The diagonal shows a histogram for each of the Series
  
      Parameters:
      -----------
              df : DataFrame
                      Pandas DataFrame
              theme : string
                      Theme to be used (if not the default)
              bins : int
                      Number of bins to use for histogram
              color : string
                      Color to be used for each scatter plot
              size : int
                      Size for each marker on the scatter plot
              iplot_kwargs : key-value pairs
                      Keyword arguments to pass through to `iplot`
      """
      sm = tools.scatter_matrix(
          self, theme=theme, bins=bins, color=color, size=size
      )
      if asFigure:
          return sm
      else:
          return iplot(sm, **iplot_kwargs)
  
imports: import pandas
  import time
  import copy
  import numpy
  from plotly.graph_objs import Figure, Layout, Bar, Box, Scatter, FigureWidget, Scatter3d, Histogram, Heatmap, Surface, Pie
  import plotly.figure_factory
  from collections import defaultdict
  from IPython.display import display, Image
  from .exceptions import CufflinksError
  from .colors import normalize, get_scales, colorgen, to_rgba, get_colorscale
  from .utils import check_kwargs, deep_update, kwargs_from_keyword, is_list
  from .None import tools
  from .None import offline
  from .None import auth
  from .None import ta
label_desc: Use image node_id 7 for calling a global function with example usage: _scatter_matrix(theme, bins, color, size, asFigure) and returns: sm, iplot