code: def test_fill_consistency():
      # GH9221
      # pass thru keyword arguments to the generated wrapper
      # are set if the passed kw is None (only)
      df = DataFrame(
          index=pd.MultiIndex.from_product(
              [
                  ["value1", "value2"],
                  date_range("2014-01-01", "2014-01-06"),
              ]
          ),
          columns=Index(["1", "2"], name="id"),
      )
      df["1"] = [
          np.nan,
          1,
          np.nan,
          np.nan,
          11,
          np.nan,
          np.nan,
          2,
          np.nan,
          np.nan,
          22,
          np.nan,
      ]
      df["2"] = [
          np.nan,
          3,
          np.nan,
          np.nan,
          33,
          np.nan,
          np.nan,
          4,
          np.nan,
          np.nan,
          44,
          np.nan,
      ]
  
      msg = "The 'axis' keyword in DataFrame.groupby is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          expected = df.groupby(level=0, axis=0).fillna(method="ffill")
  
      msg = "DataFrame.groupby with axis=1 is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          result = (
              df.T.groupby(level=0, axis=1).fillna(method="ffill").T
          )
      tm.assert_frame_equal(result, expected)
  
file_path: pandas/pandas/tests/groupby/test_missing.py
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, date_range
  import pandas._testing
label_desc: Use image node_id 5 for calling a global function with example usage: test_fill_consistency() without return types