code: def set_filters(filters):
      global PREDEFINED_FILTERS
  
      PREDEFINED_FILTERS = [
          PredefinedFilter(**filter_spec) for filter_spec in filters
      ]
  
file_path: dtale/dtale/predefined_filters.py
imports: import inspect
  from six import PY3
label_desc: Use image node_id 2 for calling a global function with example usage: set_filters(filters) without return types