code: def test_numpy_func(dummy_data):
      # Create numpy function
      def numpy_is_close_med(sig: np.ndarray) -> np.ndarray:
          return np.isclose(sig, np.median(sig))
  
      numpy_f = numpy_is_close_med
  
      inp = dummy_data["TMP"]
  
      # Undecorated numpy function
      numpy_f = numpy_is_close_med
      assert isinstance(inp.values, np.ndarray)
      res = numpy_f(inp.values)
      assert isinstance(res, np.ndarray)
      assert res.shape == dummy_data["TMP"].shape
      assert res.dtype == np.bool8
      assert sum(res) > 0  # Check if at least 1 value is True
  
      # Decorated series function
      processor = SeriesProcessor(
          series_names=["TMP"], function=numpy_f
      )
      series_dict = series_to_series_dict(inp)
      assert isinstance(inp, pd.Series)
      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.bool8)
      assert sum(res["TMP"]) > 0
  
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 7 for calling a global function with example usage: test_numpy_func(dummy_data) and returns: np