code: def fig1():
      pio.templates.default = None
      yield go.Figure(
          data=[
              go.Bar(
                  y=[2, 1, 4],
                  marker=go.bar.Marker(color="purple", opacity=0.7),
              ),
              go.Scattergl(y=[3, 4, 2]),
          ],
          layout={
              "font": {"family": "Arial", "size": 12},
              "xaxis": {"showticklabels": False},
              "yaxis": {"showticklabels": False},
              "showlegend": False,
          },
      )
      pio.templates.default = "plotly"
  
imports: import plotly
  import plotly.io
  import plotly.graph_objs
  import os
  import shutil
  import pytest
  import sys
  import pandas
  from io import BytesIO
label_desc: Use image node_id 3 for calling a global function with example usage: fig1() without return types