code: def test_downgrade_filter_set():
      """
      ensure that the filter set downgrade operation produces an almost identical dict
      as the original value
      """
      converted_v1_set = deepcopy(filter_sets_v1)
      # upgrade the native filter metadata in the comparison fixture,
      # as removing the defaultToFirstItem is not necessary
      upgrade_select_filters(converted_v1_set["nativeFilters"].values())
  
      converted_filter_set = deepcopy(filter_sets_v2)
      downgrade_filter_set(converted_filter_set)
      assert converted_filter_set == converted_v1_set
  
imports: from copy import deepcopy
  from importlib import import_module
label_desc: Use image node_id 3 for calling a global function with example usage: test_downgrade_filter_set() without return types