code: def _register_selection_callbacks(app, ids=None):
      if ids is None:
          ids = [""]
  
      for id in ids:
          app.callback(
              Output(f"file-selector{id}", "options"),
              [Input(f"folder-selector{id}", "value")],
          )(_update_file_widget)
  
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 2 for calling a global function with example usage: _register_selection_callbacks(app, ids) without return types