code: def test_single_signal_series_processor(dummy_data):
      def to_binary(series, thresh_value):
          return series.map(lambda eda: eda > thresh_value)
  
      thresh = 0.6
      series_processor = SeriesProcessor(
          series_names=["EDA"], function=to_binary, thresh_value=thresh
      )
      assert series_processor.name == "to_binary"
      assert series_processor.get_required_series() == ["EDA"]
      series_dict = dataframe_to_series_dict(dummy_data)
      res = series_processor(series_dict)
  
      assert isinstance(res, dict)
      assert res.keys() == set(["EDA"])
      assert isinstance(res["EDA"], pd.Series)
      assert res["EDA"].shape == dummy_data["EDA"].shape
  
      assert not any(res["EDA"][dummy_data["EDA"] <= thresh])
      assert all(res["EDA"][dummy_data["EDA"] > thresh])
  
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 10 for calling a global function with example usage: test_single_signal_series_processor(dummy_data) and returns: series