code: def add_filters(filters):
      global PREDEFINED_FILTERS
  
      valid_filters = []
      for filter_spec in filters:
          new_filter = PredefinedFilter(**filter_spec)
          if next(
              (
                  curr_filter
                  for curr_filter in PREDEFINED_FILTERS
                  if curr_filter.name == new_filter.name
              ),
              None,
          ):
              raise ValueError(
                  "A predefined_filters filter already exists for {}".format(
                      new_filter.name
                  )
              )
          valid_filters.append(new_filter)
      PREDEFINED_FILTERS += valid_filters
  
file_path: dtale/dtale/predefined_filters.py
imports: import inspect
  from six import PY3
label_desc: Use image node_id 3 for calling a global function with example usage: add_filters(filters) without return types