code: def test_macd():
      """test MACD"""
  
      macd = TA.MACD(ohlc)
      talib_macd = talib.MACD(ohlc["close"])
  
      assert round(talib_macd[0][-1], 3) == round(
          macd["MACD"].values[-1], 3
      )
      assert round(talib_macd[1][-1], 3) == round(
          macd["SIGNAL"].values[-1], 3
      )
  
imports: import pytest
  import os
  import pandas
  from finta import TA
  import talib
label_desc: Use image node_id 11 for calling a global function with example usage: test_macd() without return types