code: def test_all_estimators_return_tags_bad_arg(return_tags):
      """Test ability to catch bad arguments of return_tags."""
      with pytest.raises((TypeError, ValueError)):
          _ = all_estimators(return_tags=return_tags)
  
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 10 for calling a global function with example usage: test_all_estimators_return_tags_bad_arg(return_tags) without return types