code: def test_non_fixed_variable_window_indexer(closed, expected_data):
      index = date_range("2020", periods=10)
      df = DataFrame(range(10), index=index)
      offset = BusinessDay(1)
      indexer = VariableOffsetWindowIndexer(index=index, offset=offset)
      result = df.rolling(indexer, closed=closed).sum()
      expected = DataFrame(expected_data, index=index)
      tm.assert_frame_equal(result, expected)
  
imports: import numpy
  import pytest
  from pandas import DataFrame, MultiIndex, Series, concat, date_range
  import pandas._testing
  from pandas.api.indexers import BaseIndexer, FixedForwardWindowIndexer
  from pandas.core.indexers.objects import ExpandingIndexer, FixedWindowIndexer, VariableOffsetWindowIndexer
  from pandas.tseries.offsets import BusinessDay
label_desc: Use image node_id 8 for calling a global function with example usage: test_non_fixed_variable_window_indexer(closed, expected_data) without return types