code: def test_custom_fn_impute(pos1, pos2, expected, mw_data):
      mw_data[pos1, pos2] = np.nan
      imputed = impy.moving_window(mw_data, func=lambda l: max(l) * 2)
      return_na_check(imputed)
      assert imputed[pos1, pos2] == expected
  
file_path: impyute/test/imputation/ts/test_moving_window.py
imports: import pytest
  import numpy
  import impyute
  from impyute.ops.testing import return_na_check
label_desc: Use image node_id 2 for calling a global function with example usage: test_custom_fn_impute(pos1, pos2, expected, mw_data) without return types