code: def change_data_selector(args, old, new):
      global selected_file
      if new is None:
          selected_file = None
          return
      show_spinner("Updating selection...")
      selected_file = signals_files[new]
      if isinstance(selected_file, SignalsFile):
          group_cb.disabled = True
      elif isinstance(selected_file, SignalsFilesGroup):
          group_cb.disabled = False
      data_selector.remove_on_change("value", select_data)
      data_selector.options = sorted(list(selected_file.signals.keys()))
      data_selector.on_change("value", select_data)
      selected_signal_names = [
          s.name for s in selected_file.signals.values() if s.selected
      ]
      if not selected_signal_names:
          selected_signal_names = [""]
      change_selected_signals_in_data_selector(selected_signal_names)
      averaging_slider.value = selected_file.signals_averaging_window
      if len(averaging_slider_dummy_source.data["value"]) > 0:
          averaging_slider_dummy_source.data["value"][
              0
          ] = selected_file.signals_averaging_window
      group_cb.active = [
          0 if selected_file.show_bollinger_bands else None
      ]
      group_cb.active += [1 if selected_file.separate_files else None]
      hide_spinner()
  
imports: import copy
  import datetime
  import os
  import sys
  import time
  from itertools import cycle
  from os import listdir
  from os.path import isfile, join, isdir
  from bokeh.layouts import row, column, Spacer, ToolbarBox
  from bokeh.models import ColumnDataSource, Range1d, LinearAxis, Legend, WheelZoomTool, CrosshairTool, ResetTool, SaveTool, Toolbar, PanTool, BoxZoomTool, Toggle
  from bokeh.models.callbacks import CustomJS
  from bokeh.models.widgets import RadioButtonGroup, MultiSelect, Button, Select, Slider, Div, CheckboxGroup
  from bokeh.plotting import figure
  from rl_coach.dashboard_components.globals import signals_files, x_axis_labels, x_axis_options, show_spinner, hide_spinner, dialog, FolderType, RunType, add_directory_csv_files, doc, display_boards, layouts, crcolor, crx, cry, color_resolution, crRGBs, rgb_to_hex, x_axis
  from rl_coach.dashboard_components.signals_files_group import SignalsFilesGroup
  from rl_coach.dashboard_components.signals_file import SignalsFile
label_desc: Use image node_id 22 for calling a global function with example usage: change_data_selector(args, old, new) without return types