code: def test_panel_in_primitives_out_not_supported_fit_in_transform(
      backend,
  ):
      """Test that fit/transform runs and returns the correct output type.
  
      Setting: transformer has tags
          "scitype:transform-input" = "Series"
          "scitype:transform-output" = "Primitives"
          "fit_is_empty" = True
          "X_inner_mtype" does not support "Panel", but does supports "Series"
  
      X input to fit/transform has Panel scitype
      X output from fit/transform should be Table
      """
      # one example for a transformer which supports Series internally but not Panel
      cls = SummaryTransformer
      est = cls.create_test_instance()
      est.set_config(**backend.copy())
      # ensure cls is a good example, if this fails, choose another example
      #   (if this changes, it may be due to implementing more scitypes)
      #   (then this is not a failure of cls, but we need to choose another example)
      assert "Series" in inner_X_scitypes(est)
      assert "Panel" not in inner_X_scitypes(est)
      assert "Hierarchical" not in inner_X_scitypes(est)
      assert est.get_tag("fit_is_empty")
      assert est.get_tag("scitype:transform-input") == "Series"
      assert est.get_tag("scitype:transform-output") == "Primitives"
  
      # scenario in which series are passed to fit/transform
      scenario = TransformerFitTransformPanelUnivariate()
      Xt = scenario.run(est, method_sequence=["fit", "transform"])
  
      valid, _, _ = check_is_scitype(
          Xt, scitype="Table", return_metadata=True
      )
      assert (
          valid
      ), "fit.transform does not return a Table when given a Panel"
      # todo: possibly, add mtype check, use metadata return
      # length of Xt should be seven = number of samples in the scenario
      assert len(Xt) == 7
  
imports: from inspect import isclass
  import pandas
  import pytest
  from sktime.datatypes import check_is_scitype, get_examples, mtype_to_scitype
  from sktime.transformations.compose import FitInTransform
  from sktime.transformations.panel.padder import PaddingTransformer
  from sktime.transformations.panel.tsfresh import TSFreshFeatureExtractor, TSFreshRelevantFeatureExtractor
  from sktime.transformations.series.boxcox import BoxCoxTransformer
  from sktime.transformations.series.exponent import ExponentTransformer
  from sktime.transformations.series.summarize import SummaryTransformer
  from sktime.utils._testing.scenarios_transformers import TransformerFitTransformHierarchicalMultivariate, TransformerFitTransformHierarchicalUnivariate, TransformerFitTransformPanelUnivariate, TransformerFitTransformPanelUnivariateWithClassYOnlyFit, TransformerFitTransformSeriesMultivariate, TransformerFitTransformSeriesUnivariate
  from sktime.utils._testing.series import _make_series
  from sktime.utils.parallel import _get_parallel_test_fixtures
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 8 for calling a global function with example usage: test_panel_in_primitives_out_not_supported_fit_in_transform(backend) without return types