code: def load_index_filter(data_id):
      curr_settings = global_state.get_settings(data_id) or {}
      column_filters = curr_settings.get("columnFilters") or {}
      indexes = curr_settings.get("indexes", [])
      for col in indexes:
          cfg = column_filters.get(col)
          if cfg:
              start, end = (cfg.get(p) for p in ["start", "end"])
              if start and end:
                  return {
                      "date_range": [
                          pd.Timestamp(start),
                          pd.Timestamp(end),
                      ]
                  }
              elif start:
                  return {"date_range": [pd.Timestamp(start), None]}
              elif end:
                  return {"date_range": [None, pd.Timestamp(end)]}
      return {}
  
file_path: dtale/dtale/query.py
imports: import pandas
  import dtale.global_state
  from dtale.pandas_util import check_pandas_version
  from dtale.utils import format_data, get_bool_arg
label_desc: Use image node_id 4 for calling a global function with example usage: load_index_filter(data_id) and returns: dict, dict, dict, dict