Deprecate `ModelFilter/DatasetFilter` (#2028)
* Deprecate DatasetFilter and ModelFilter classes + modify list_models method
Moved all attributes from ModelFilter class to list_models arguments and added a filter query builder to build a query.
Updated list_models to take both filter as an Iterable and also update the filter list based on other arguments in the method
* Reformat code
* Reformat Code
* Update checks in to be consistent
* Add build_dataset_filter method and modified list_dataset
* Update list_models and list_dataset methods to use set for filters to avoid duplication
* Update warning to use FutureWarning instead of DeprecatedWarning
* Update search helper classes docstrings to follow HF doc-builder syntax
* Modify warnings to be consistent
* Move comments to inline to fix mypy issues
* Move model filter builder to
* Move dataset filter builder to list_datasets
* Address comments and remove stacklevel argument from warnings
* Apply suggestions from code review
Fix warning docstring
Co-authored-by: Lucain <lucainp@gmail.com>
* Update warnings and add deprecation decorator to tests
* Apply suggestions from code review
---------
Co-authored-by: Lucain <lucainp@gmail.com>