code: def test_apply_roll_with_offset_data_min_periods_too_big(
      window_series_pd,
  ):
      window_length = "5D"
      gap = "2d"
  
      # Since the data has a daily frequency, there will only be, at most, 5 rows in the window
      min_periods = 6
  
      def max_wrapper(sub_s):
          return apply_roll_with_offset_gap(
              sub_s, gap, max, min_periods=min_periods
          )
  
      rolling_max_obj = roll_series_with_gap(
          window_series_pd,
          window_length,
          min_periods=min_periods,
          gap=gap,
      )
      rolling_max_series = rolling_max_obj.apply(max_wrapper)
  
      # The resulting series is comprised entirely of nans
      assert rolling_max_series.isna().sum() == len(window_series_pd)
  
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 15 for calling a global function with example usage: test_apply_roll_with_offset_data_min_periods_too_big(window_series_pd) and returns: apply_roll_with_offset_gap