code: def _make_trace_for_scatter(
      trace, trace_type, color, **kwargs_marker
  ):
      if trace_type in ["scatter", "scattergl"]:
          trace["mode"] = "markers"
          trace["marker"] = dict(color=color, **kwargs_marker)
      return trace
  
file_path: plotly.py/packages/python/plotly/plotly/figure_factory/_facet_grid.py
imports: from plotly import exceptions, optional_imports
  import plotly.colors
  from plotly.figure_factory import utils
  from plotly.subplots import make_subplots
  import math
  from numbers import Number
label_desc: Use image node_id 7 for calling a global function with example usage: _make_trace_for_scatter(trace, trace_type, color) and returns: trace