code: def test_apply_gap_for_expanding_primitives(window_series_pd, gap):
      actual = _apply_gap_for_expanding_primitives(
          window_series_pd, gap
      ).values
      expected = window_series_pd.shift(gap).values
      pd.testing.assert_series_equal(
          pd.Series(actual), pd.Series(expected)
      )
  
file_path: featuretools/featuretools/tests/primitive_tests/transform_primitive_tests/test_expanding_primitives.py
imports: import numpy
  import pandas
  import pytest
  from featuretools.primitives.standard.transform.time_series.expanding import ExpandingCount, ExpandingMax, ExpandingMean, ExpandingMin, ExpandingSTD, ExpandingTrend
  from featuretools.primitives.standard.transform.time_series.utils import _apply_gap_for_expanding_primitives
  from featuretools.utils import calculate_trend
label_desc: Use image node_id 10 for calling a global function with example usage: test_apply_gap_for_expanding_primitives(window_series_pd, gap) without return types