code: def test_numpy_replace_series_processor(dummy_data):
      def scale(sig: pd.Series) -> np.ndarray:
          return np.array(sig - np.mean(sig)) / np.std(sig)
  
      # Check if scale returns a numpy array
      scaled_tmp = scale(dummy_data["TMP"])
      assert isinstance(scaled_tmp, np.ndarray)
  
      series_processor = SeriesProcessor(
          series_names=["ACC_x", "ACC_y", "ACC_z"],
          function=scale,
      )
      series_dict = dataframe_to_series_dict(dummy_data)
      res = series_processor(series_dict)
  
      # Check if the series get replaced correctly
      assert res.keys() == set(["ACC_x", "ACC_y", "ACC_z"])
      for key in ["ACC_x", "ACC_y", "ACC_z"]:
          res_series = res[key]
          assert isinstance(res_series, pd.Series)
          assert_index_equal(res_series.index, dummy_data[key].index)
          assert_series_equal(
              res_series,
              (dummy_data[key] - np.mean(dummy_data[key]))
              / np.std(dummy_data[key]),
          )
  
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 12 for calling a global function with example usage: test_numpy_replace_series_processor(dummy_data) and returns: unknown