code: def test_scitype_inference(estimator_scitype):
      """Check that scitype inverts _check_estimator_types."""
      base_class = _check_estimator_types(estimator_scitype)[0]
      inferred_scitype = scitype(base_class)
  
      assert (
          inferred_scitype == estimator_scitype
      ), "one of scitype, _check_estimator_types is incorrect, these should be inverses"
  
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 12 for calling a global function with example usage: test_scitype_inference(estimator_scitype) without return types