code: def test_roll_series_with_gap_different_input_types_same_result_uniform(
      window_series_pd,
  ):
      # Offset inputs will only produce the same results as numeric inputs
      # when the data has a uniform frequency
      offset_gap = "2d"
      offset_window_length = "5d"
      int_gap = 2
      int_window_length = 5
      min_periods = 1
  
      # Rolling series' with matching input types
      expected_rolling_numeric = roll_series_with_gap(
          window_series_pd,
          window_length=int_window_length,
          gap=int_gap,
          min_periods=min_periods,
      ).max()
  
      def count_wrapper(sub_s):
          return apply_roll_with_offset_gap(
              sub_s,
              offset_gap,
              max,
              min_periods=min_periods,
          )
  
      rolling_count_obj = roll_series_with_gap(
          window_series_pd,
          window_length=offset_window_length,
          gap=offset_gap,
          min_periods=min_periods,
      )
      expected_rolling_offset = rolling_count_obj.apply(count_wrapper)
  
      # confirm that the offset and gap results are equal to one another
      pd.testing.assert_series_equal(
          expected_rolling_numeric, expected_rolling_offset
      )
  
      # Rolling series' with mismatched input types
      mismatched_numeric_gap = roll_series_with_gap(
          window_series_pd,
          window_length=offset_window_length,
          gap=int_gap,
          min_periods=min_periods,
      ).max()
      # Confirm the mismatched results also produce the same results
      pd.testing.assert_series_equal(
          expected_rolling_numeric, mismatched_numeric_gap
      )
  
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 16 for calling a global function with example usage: test_roll_series_with_gap_different_input_types_same_result_uniform(window_series_pd) and returns: apply_roll_with_offset_gap