code: def test_MOM():
      values = pl.Series([90.0, 88.0, 89.0])
      result = talib.MOM(values, timeperiod=1)
      assert isinstance(result, pl.Series)
      assert_array_equal(result.to_numpy(), [np.nan, -2, 1])
      result = talib.MOM(values, timeperiod=2)
      assert isinstance(result, pl.Series)
      assert_array_equal(result.to_numpy(), [np.nan, np.nan, -1])
      result = talib.MOM(values, timeperiod=3)
      assert isinstance(result, pl.Series)
      assert_array_equal(result.to_numpy(), [np.nan, np.nan, np.nan])
      result = talib.MOM(values, timeperiod=4)
      assert isinstance(result, pl.Series)
      assert_array_equal(result.to_numpy(), [np.nan, np.nan, np.nan])
  
file_path: ta-lib-python/tests/test_polars.py
imports: import numpy
  from numpy.testing import assert_array_equal
  import polars
  import talib
  from talib import abstract
label_desc: Use image node_id 1 for calling a global function with example usage: test_MOM() without return types