code: def test_background_gradient_gmap_wrong_dataframe(styler_blank, axis):
      # test giving a gmap in DataFrame but with wrong axis
      gmap = DataFrame(
          [[1, 2], [2, 1]], columns=["A", "B"], index=["X", "Y"]
      )
      msg = "'gmap' is a DataFrame but underlying data for operations is a Series"
      with pytest.raises(ValueError, match=msg):
          styler_blank.background_gradient(
              gmap=gmap, axis=axis
          )._compute()
  
imports: import gc
  import numpy
  import pytest
  from pandas import DataFrame, IndexSlice, Series
  import matplotlib
  from pandas.io.formats.style import Styler
label_desc: Use image node_id 16 for calling a global function with example usage: test_background_gradient_gmap_wrong_dataframe(styler_blank, axis) without return types