code: def example_figure_fig() -> go.Figure:
      df_gusb = pd.read_parquet(f"{data_dir}df_gusb.parquet")
      df_data_pc = pd.read_parquet(f"{data_dir}df_pc_test.parquet")
  
      n = 110_000  # _000
      np_series = np.array(
          (3 + np.sin(np.arange(n) / 200_000) + np.random.randn(n) / 10)
          * np.arange(n)
          / 100_000,
          dtype=np.float32,
      )
      x = np.arange(len(np_series))
  
      # construct a normal figure object instead of a figureResample object
      fig = make_subplots(
          rows=2,
          cols=2,
          specs=[[{}, {}], [{"colspan": 2}, None]],
          subplot_titles=(
              "GUSB swimming pool",
              "Generated sine",
              "Power consumption",
          ),
          vertical_spacing=0.12,
      )
  
      # ------------ swimming pool data -----------
      df_gusb_pool = df_gusb["zwembad"].last("4D").dropna()
      fig.add_trace(
          go.Scattergl(
              x=df_gusb_pool.index,
              y=df_gusb_pool,  # .astype("uint16"),
              mode="markers",
              marker_size=5,
              name="occupancy",
              showlegend=True,
              hovertext="mean last hour: "
              + df_gusb_pool.rolling("1h")
              .mean()
              .astype(int)
              .astype(str),
          ),
          # downsampler=EveryNthPoint(),
          row=1,
          col=1,
      )
      fig.update_yaxes(title_text="Occupancy", row=1, col=1)
  
      # ----------------- generated sine -----------
      fig.add_trace(
          go.Scattergl(
              name="sin", line_color="#26b2e0", x=x, y=np_series
          ),
          row=1,
          col=2,
      )
  
      # ------------- Power consumption data -------------
      df_data_pc = df_data_pc.last("190D")
      for i, c in enumerate(df_data_pc.columns):
          fig.add_trace(
              go.Scattergl(
                  name=f"room {i+1}",
                  x=df_data_pc.index,
                  y=df_data_pc[c].astype(np.float32),
              ),
              row=2,
              col=1,
          )
  
      fig.update_layout(height=600)
      fig.update_yaxes(title_text="Watt/hour", row=2, col=1)
      fig.update_layout(
          title="<b>Plotly-Resampler demo - fig base</b>",
          title_x=0.5,
          legend_traceorder="normal",
      )
      return fig
  
imports: import os
  from typing import Union
  import numpy
  import pandas
  import plotly.graph_objects
  import pytest
  from plotly.subplots import make_subplots
  from plotly_resampler import LTTB, EveryNthPoint, FigureResampler, unregister_plotly_resampler
label_desc: Use image node_id 9 for calling a global function with example usage: example_figure_fig() and returns: fig