code: def test_ratio_overlapping_kws(method, args):
      with pytest.raises(ValueError, match="height_ratios"):
          getattr(plt, method)(
              *args,
              height_ratios=[1, 2],
              gridspec_kw={"height_ratios": [1, 2]},
          )
      with pytest.raises(ValueError, match="width_ratios"):
          getattr(plt, method)(
              *args,
              width_ratios=[1, 2, 3],
              gridspec_kw={"width_ratios": [1, 2, 3]},
          )
  
imports: import itertools
  import numpy
  import pytest
  from matplotlib.axes import Axes, SubplotBase
  import matplotlib.pyplot
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
label_desc: Use image node_id 17 for calling a global function with example usage: test_ratio_overlapping_kws(method, args) without return types