code: def test_output_type(Estimator):
      """Test annotator output type."""
      if not run_test_for_class(Estimator):
          return None
  
      estimator = Estimator.create_test_instance()
  
      arg = make_annotation_problem(
          n_timepoints=50,
          estimator_type=estimator.get_tag("distribution_type"),
      )
      estimator.fit(arg)
      arg = make_annotation_problem(
          n_timepoints=10,
          estimator_type=estimator.get_tag("distribution_type"),
      )
      y_pred = estimator.predict(arg)
      assert isinstance(y_pred, (pd.Series, np.ndarray))
  
imports: import numpy
  import pandas
  import pytest
  from sktime.registry import all_estimators
  from sktime.tests.test_switch import run_test_for_class
  from sktime.utils._testing.annotation import make_annotation_problem
label_desc: Use image node_id 1 for calling a global function with example usage: test_output_type(Estimator) and returns: None