code: def test_all_estimators_tag_filter(pred_int):
      """Test that tag filtering returns estimators as expected."""
      NOPROBA_EXAMPLE = "TrendForecaster"
      PROBA_EXAMPLE = "ARIMA"
  
      res = all_estimators(
          "forecaster", filter_tags={"capability:pred_int": pred_int}
      )
      names, ests = zip(*res)
  
      if pred_int:
          assert PROBA_EXAMPLE in names
          assert NOPROBA_EXAMPLE not in names
          assert [
              est.get_class_tag("capability:pred_int") for est in ests
          ]
      else:
          assert PROBA_EXAMPLE not in names
          assert NOPROBA_EXAMPLE in names
          assert [
              not est.get_class_tag("capability:pred_int")
              for est in ests
          ]
  
file_path: sktime/sktime/registry/tests/test_lookup.py
imports: import pytest
  from sktime.base import BaseObject
  from sktime.registry import all_estimators, all_tags, scitype
  from sktime.registry._base_classes import BASE_CLASS_LOOKUP, BASE_CLASS_SCITYPE_LIST, TRANSFORMER_MIXIN_SCITYPE_LIST
  from sktime.registry._lookup import _check_estimator_types
label_desc: Use image node_id 11 for calling a global function with example usage: test_all_estimators_tag_filter(pred_int) without return types