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