code: def update_fig(relayoutdata: dict, fig: FigureResampler):
      if fig is not None:
          return fig.construct_update_data_patch(relayoutdata)
      return no_update
  
file_path: plotly-resampler/examples/dash_apps/03_minimal_cache_dynamic.py
imports: from typing import List
  from uuid import uuid4
  import numpy
  import plotly.graph_objects
  from dash import MATCH, Input, Output, State, dcc, html, no_update
  from dash_extensions.enrich import DashProxy, Serverside, ServersideOutputTransform, Trigger, TriggerTransform
  from plotly_resampler import FigureResampler
  from plotly_resampler.aggregation import MinMaxLTTB
label_desc: Use image node_id 3 for calling a global function with example usage: update_fig(relayoutdata, fig) and returns: no_update, fig