code: def test_roll_series_with_non_offset_string_inputs(window_series_pd):
      error = "Cannot roll series. The specified gap, test, is not a valid offset alias."
      with pytest.raises(ValueError, match=error):
          roll_series_with_gap(
              window_series_pd,
              window_length="4D",
              gap="test",
              min_periods=1,
          )
  
      error = "Cannot roll series. The specified window length, test, is not a valid offset alias."
      with pytest.raises(ValueError, match=error):
          roll_series_with_gap(
              window_series_pd,
              window_length="test",
              gap="7D",
              min_periods=1,
          )
  
      # Test mismatched types error
      error = (
          "Cannot roll series with offset gap, 2d, and numeric window length, 7. "
          "If an offset alias is used for gap, the window length must also be defined as an offset alias. "
          "Please either change gap to be numeric or change window length to be an offset alias."
      )
      with pytest.raises(TypeError, match=error):
          roll_series_with_gap(
              window_series_pd,
              window_length=7,
              gap="2d",
              min_periods=1,
          ).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 19 for calling a global function with example usage: test_roll_series_with_non_offset_string_inputs(window_series_pd) without return types