code: def test_groupby_axis0_cummax_axis1():
      # case where groupby axis is 0 and axis keyword in transform is 1
  
      # df has mixed dtype -> multiple blocks
      df = DataFrame(
          {0: [1, 3, 5, 7], 1: [2, 4, 6, 8], 2: [1.5, 3.5, 5.5, 7.5]},
          index=["a", "a", "b", "b"],
      )
      msg = "The 'axis' keyword in DataFrame.groupby is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          gb = df.groupby(level=0, axis=0)
  
      msg = "DataFrameGroupBy.cummax with axis=1 is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          cmax = gb.cummax(axis=1)
      expected = df[[0, 1]].astype(np.float64)
      expected[2] = expected[1]
      tm.assert_frame_equal(cmax, expected)
  
imports: from datetime import datetime
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, NaT, Series, concat
  import pandas._testing
label_desc: Use image node_id 16 for calling a global function with example usage: test_groupby_axis0_cummax_axis1() without return types