code: def fig1(request):
      return go.Figure(
          data=[
              {
                  "type": "scatter",
                  "y": np.array([2, 1, 3, 2, 4, 2]),
                  "marker": {"color": "green"},
              }
          ],
          layout={"title": {"text": "Figure title"}},
      )
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_io/test_html.py
imports: import sys
  import pytest
  import numpy
  import plotly.graph_objs
  import plotly.io
  from plotly.io._utils import plotly_cdn_url
label_desc: Use image node_id 1 for calling a global function with example usage: fig1(request) and returns: go