code: def multiple_folder_file_selector(
      app, name_folders_list: List[Dict[str, dict]], multi=True
  ) -> dbc.Card:
      """Constructs a folder user date selector
  
      Creates a `dbc.Card` component which can be
  
      Parameters
      ----------
      app:
          The dash application.
      name_folders_list:List[Dict[str, Union[Path, str]]]
           A dict with key, the display-key and values the correspondign path.
  
      Returns
      -------
      A bootstrap card component
      """
      selector = dbc.Card(
          [
              dbc.Card(
                  [
                      dbc.Col(
                          [
                              dbc.Label("folder"),
                              dcc.Dropdown(
                                  id=f"folder-selector{i}",
                                  options=[
                                      {
                                          "label": l,
                                          "value": str(f["folder"]),
                                      }
                                      for (l, f) in name_folders.items()
                                  ],
                                  clearable=False,
                              ),
                              dbc.Label("file"),
                              dcc.Dropdown(
                                  id=f"file-selector{i}",
                                  options=[],
                                  clearable=True,
                                  multi=multi,
                              ),
                              html.Br(),
                          ]
                      ),
                  ]
              )
              for i, name_folders in enumerate(name_folders_list, 1)
          ]
          + [
              dbc.Card(
                  dbc.Col(
                      [
                          html.Br(),
                          dbc.Button(
                              "create figure",
                              id="plot-button",
                              color="primary",
                          ),
                      ],
                      style={"textAlign": "center"},
                  ),
              )
          ],
          body=True,
      )
  
      _register_selection_callbacks(
          app=app, ids=range(1, len(name_folders_list) + 1)
      )
      return selector
  
file_path: plotly-resampler/examples/dash_apps/utils/callback_helpers.py
imports: import itertools
  from pathlib import Path
  from typing import Dict, List
  import dash_bootstrap_components
  from dash import Input, Output, State, dcc, html
  from functional import seq
label_desc: Use image node_id 3 for calling a global function with example usage: multiple_folder_file_selector(app, name_folders_list, multi) and returns: selector