code: def test_trending_down():
      df = to_dataframe(data)
      ma = TA.HMA(df)
      assert isinstance(trending_down(ma, 10), Series)
  
      assert trending_down(ma, 10).values[-1]
  
file_path: finta/tests/test_utils_unit.py
imports: import pytest
  import os
  from pandas import DataFrame, Series
  from finta import TA
  from finta.utils import to_dataframe, resample, trending_down, trending_up
  import numpy
  import json
label_desc: Use image node_id 6 for calling a global function with example usage: test_trending_down() without return types