code: def test_roll_series_with_gap_nullable_types(window_series_pd):
      window_length = 3
      gap = 2
      min_periods = 1
      # Because we're inserting nans, confirm that nullability of the dtype doesn't have an impact on the results
      nullable_series = window_series_pd.astype("Int64")
      non_nullable_series = window_series_pd.astype("int64")
  
      nullable_rolling_max = roll_series_with_gap(
          nullable_series,
          window_length,
          gap=gap,
          min_periods=min_periods,
      ).max()
      non_nullable_rolling_max = roll_series_with_gap(
          non_nullable_series,
          window_length,
          gap=gap,
          min_periods=min_periods,
      ).max()
  
      pd.testing.assert_series_equal(
          nullable_rolling_max, non_nullable_rolling_max
      )
  
imports: from unittest.mock import patch
  import numpy
  import pandas
  import pytest
  from featuretools.primitives import RollingCount, RollingMax, RollingMean, RollingMin, RollingSTD, RollingTrend
  from featuretools.primitives.standard.transform.time_series.utils import _get_rolled_series_without_gap, apply_roll_with_offset_gap, roll_series_with_gap
  from featuretools.tests.primitive_tests.utils import get_number_from_offset
label_desc: Use image node_id 8 for calling a global function with example usage: test_roll_series_with_gap_nullable_types(window_series_pd) without return types