code: def update_fig(relayoutdata: dict, fig: FigureResampler):
      if fig is None:
          return no_update
      return fig.construct_update_data_patch(relayoutdata)
  
file_path: plotly-resampler/examples/dash_apps/12_file_selector.py
imports: from pathlib import Path
  from typing import List
  import dash_bootstrap_components
  import plotly.graph_objects
  from dash import callback_context, dcc, html, no_update
  from dash_extensions.enrich import Output, Input, State
  from dash_extensions.enrich import DashProxy, Serverside, ServersideOutputTransform
  from utils.callback_helpers import get_selector_states, multiple_folder_file_selector
  from utils.graph_construction import visualize_multiple_files
  from plotly_resampler import FigureResampler
label_desc: Use image node_id 3 for calling a global function with example usage: update_fig(relayoutdata, fig) and returns: fig, no_update