code: def tsfresh_combiner_wrapper(
      func: Callable, param: List[Dict]
  ) -> FuncWrapper:
      """Wrapper enabling compatibility with tsfresh combiner functions.
  
      [tsfresh feature-funtions](https://github.com/blue-yonder/tsfresh/blob/main/tsfresh/feature_extraction/feature_calculators.py)
      are either of type `simple` or `combiner`.\n
      * `simple`: feature calculators which calculate a single number
        **=> integrates natively with tsflex**
      * `combiner`: feature calculates which calculate a bunch of features for a list of parameters.
         These features are returned as a list of (key, value) pairs for each input parameter.
         **=> requires wrapping the function to only extract the values of the returned tuples**
  
      Parameters
      ----------
      func: Callable
          The tsfresh combiner function.
      param: List[Dict]
          List containing dictionaries with the parameter(s) for the combiner function.
          This is exactly the same ``param`` as you would pass to a tsfresh combiner
          function.
  
      Returns
      -------
      FuncWrapper
          The wrapped tsfresh combiner function that is compatible with tsflex.
  
      """
  
      def wrap_func(x: Union[np.ndarray, pd.Series]):
          out = func(x, param)
          return tuple(t[1] for t in out)
  
      wrap_func.__name__ = "[tsfresh-combiner_wrapped]__" + _get_name(
          func
      )
      input_type = (
          pd.Series if hasattr(func, "index_type") else np.array
      )
      return FuncWrapper(
          wrap_func,
          output_names=[func.__name__ + "_" + str(p) for p in param],
          input_type=input_type,
      )
  
file_path: tsflex/tsflex/features/integrations.py
imports: import importlib
  from typing import Callable, Dict, List, Optional, Union
  import numpy
  import pandas
  from .function_wrapper import FuncWrapper, _get_name
label_desc: Use image node_id 4 for calling a global function with example usage: tsfresh_combiner_wrapper(func, param) and returns: FuncWrapper, tuple