code: def test_series_output(dummy_data):
      # Create series output function
      def to_numeric(series: pd.Series) -> pd.Series:
          return pd.to_numeric(series)
  
      single_series_f = to_numeric
  
      inp = dummy_data["TMP"].astype(str)
      assert isinstance(inp, pd.Series)
  
      # Undecorated series function
      assert not np.issubdtype(inp, np.number)
      res = single_series_f(inp)
      assert isinstance(res, pd.Series)
      assert res.shape == dummy_data["TMP"].shape
      assert np.issubdtype(res, np.number)
  
      # Decorated series function
      processor = SeriesProcessor(
          series_names=["TMP"], function=single_series_f
      )
      series_dict = series_to_series_dict(inp)
      assert not np.issubdtype(series_dict["TMP"], np.number)
      res = processor(series_dict)
      assert isinstance(res, dict)
      assert res.keys() == series_dict.keys()
      assert isinstance(res["TMP"], pd.Series)
      assert res["TMP"].shape == dummy_data["TMP"].shape
      assert np.issubdtype(res["TMP"], np.number)
  
imports: from typing import List
  import numpy
  import pandas
  import pytest
  from pandas.testing import assert_index_equal, assert_series_equal
  from tsflex.processing import SeriesProcessor, dataframe_func
  from .utils import dataframe_to_series_dict, dummy_data, series_to_series_dict
label_desc: Use image node_id 3 for calling a global function with example usage: test_series_output(dummy_data) and returns: pd