code: def test_height_ratios():
      """
      Addresses issue #5835.
      See at https://github.com/matplotlib/matplotlib/issues/5835.
      """
      with pytest.raises(ValueError):
          gridspec.GridSpec(1, 1, height_ratios=[2, 1, 3])
  
imports: import matplotlib.gridspec
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_height_ratios() without return types