code: def test_rolling_functions_window_non_shrinkage_binary(f):
      # corr/cov return a MI DataFrame
      df = DataFrame(
          [[1, 5], [3, 2], [3, 9], [-1, 0]],
          columns=Index(["A", "B"], name="foo"),
          index=Index(range(4), name="bar"),
      )
      df_expected = DataFrame(
          columns=Index(["A", "B"], name="foo"),
          index=MultiIndex.from_product(
              [df.index, df.columns], names=["bar", "foo"]
          ),
          dtype="float64",
      )
      df_result = f(df)
      tm.assert_frame_equal(df_result, df_expected)
  
imports: import numpy
  import pytest
  from pandas.compat import IS64
  from pandas import DataFrame, Index, MultiIndex, Series, date_range
  import pandas._testing
  from pandas.core.algorithms import safe_sort
label_desc: Use image node_id 13 for calling a global function with example usage: test_rolling_functions_window_non_shrinkage_binary(f) without return types