code: def plot_graph(n_clicks, *folder_list):
      it = iter(folder_list)
      file_list: List[Path] = []
      for folder, files in zip(it, it):
          if not all((folder, files)):
              continue
          else:
              for file in files:
                  file_list.append((Path(folder).joinpath(file)))
  
      ctx = callback_context
      if (
          len(ctx.triggered)
          and "plot-button" in ctx.triggered[0]["prop_id"]
      ):
          if len(file_list):
              fig: FigureResampler = visualize_multiple_files(file_list)
              return fig, Serverside(fig)
      else:
          return no_update
  
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 2 for calling a global function with example usage: plot_graph(n_clicks) and returns: no_update, fig,  Serverside