code: def test_all_apply(engine_and_raw):
      engine, raw = engine_and_raw
  
      df = (
          DataFrame(
              {
                  "A": date_range("20130101", periods=5, freq="s"),
                  "B": range(5),
              }
          ).set_index("A")
          * 2
      )
      er = df.rolling(window=1)
      r = df.rolling(window="1s")
  
      result = r.apply(lambda x: 1, engine=engine, raw=raw)
      expected = er.apply(lambda x: 1, engine=engine, raw=raw)
      tm.assert_frame_equal(result, expected)
  
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 6 for calling a global function with example usage: test_all_apply(engine_and_raw) without return types