code: def is_filter_selected(self, selection_id, value):
          
          selected = self.dashboard_cookie.get(selection_id)
          return selected == value
docs: Compares whether the 'selection_id' parameter value saved in the
          cookie is the same value as the "value" parameter.
  
          :param selection_id: a string as a dashboard_cookie key.
          :param value: The value to compare against the value from
          dashboard_cookie key.
          :return: Boolean.