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"}},
      )
  
imports: import json
  import sys
  import base64
  import threading
  import time
  import pytest
  import requests
  import numpy
  import webbrowser
  import plotly.graph_objs
  import plotly.io
  from plotly.offline import get_plotlyjs
  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