code: def get_selector_states(n: int) -> List[State]:
      """Return a list of all the folder-file selector fields, which are used as State
  
      Parameters
      ----------
      n: int
          The number of folder selectors
  
      """
      return list(
          itertools.chain.from_iterable(
              [
                  (
                      State(f"folder-selector{i}", "value"),
                      State(f"file-selector{i}", "value"),
                  )
                  for i in range(1, n + 1)
              ]
          )
      )
  
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 4 for calling a global function with example usage: get_selector_states(n) and returns: list