code: def test_apply_func_module():
      datastore = {"to_profile": {"asc_numbers": get_test_data()}}
  
      def func(x):
          return x + 1
  
      module = ApplyFunc(
          apply_to_key="to_profile",
          store_key="profiled",
          features=["asc_numbers"],
      )
  
      module.add_apply_func(np.std, entire=True)
      module.add_apply_func(np.mean, entire=True)
      module.add_apply_func(func)
  
      datastore = module.transform(datastore)
  
      p = datastore["profiled"]["asc_numbers"]
  
      np.testing.assert_equal(p["a_mean"].values[0], 49.5)
      np.testing.assert_equal(p["b_mean"].values[0], 1.5)
      np.testing.assert_almost_equal(p["a_std"].values[0], 28.86607)
      np.testing.assert_almost_equal(p["b_std"].values[0], 0.5)
  
file_path: popmon/tests/popmon/analysis/profiling/test_apply_func.py
imports: import numpy
  import pandas
  import pytest
  from popmon.analysis.apply_func import ApplyFunc, apply_func, apply_func_array
  from popmon.analysis.functions import pull
  from popmon.analysis.profiling.pull_calculator import ExpandingPullCalculator, ReferencePullCalculator, RefMedianMadPullCalculator, RollingPullCalculator
  from popmon.base import Pipeline
label_desc: Use image node_id 3 for calling a global function with example usage: test_apply_func_module() and returns: unknown