code: def test_rolling_apply_invalid_raw(bad_raw):
      with pytest.raises(
          ValueError, match="raw parameter must be `True` or `False`"
      ):
          Series(range(3)).rolling(1).apply(len, raw=bad_raw)
  
imports: import numpy
  import pytest
  from pandas import DataFrame, Index, MultiIndex, Series, Timestamp, concat, date_range, isna, notna
  import pandas._testing
  from pandas.tseries import offsets
label_desc: Use image node_id 2 for calling a global function with example usage: test_rolling_apply_invalid_raw(bad_raw) without return types