code: def test_all_estimators_exclude_estimators(exclude_estimators):
      """Test exclued_estimators argument in all_estimators."""
      estimators = all_estimators(
          return_names=True, exclude_estimators=exclude_estimators
      )
      assert isinstance(estimators, list)
      assert len(estimators) > 0
      names, estimators = list(zip(*estimators))
  
      if not isinstance(exclude_estimators, list):
          exclude_estimators = [exclude_estimators]
      for estimator in exclude_estimators:
          assert estimator not in names
  
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 6 for calling a global function with example usage: test_all_estimators_exclude_estimators(exclude_estimators) without return types