code: def _update_file_widget(folder):
      if folder is None:
          return []
      return [
          {"label": filename, "value": filename}
          for filename in sorted(
              set(
                  list(
                      seq(Path(folder).iterdir())
                      .filter(
                          lambda x: x.is_file()
                          and x.name.endswith("parquet")
                      )
                      .map(lambda x: x.name)
                  )
              )
          )
      ]
  
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 1 for calling a global function with example usage: _update_file_widget(folder) and returns: unknown, list