code: def test_calculate_trend(series, expected_trends):
      actual_trends = calculate_trend(series)
      assert np.isclose(actual_trends, expected_trends)
  
file_path: featuretools/featuretools/tests/utils_tests/test_time_utils.py
imports: from datetime import datetime, timedelta
  from itertools import chain
  import numpy
  import pandas
  import pytest
  from featuretools.utils import convert_time_units, make_temporal_cutoffs
  from featuretools.utils.time_utils import calculate_trend, convert_datetime_to_floats, convert_timedelta_to_floats
label_desc: Use image node_id 5 for calling a global function with example usage: test_calculate_trend(series, expected_trends) without return types