code: def test_plot_ale_sharey_row(n_cols, explanation):
      """Test if all axes on the same rows have the same y limits and axes on different rows have different y limits
      when ``sharey=row``."""
      axes = plot_ale(
          exp=explanation, features=[0, 1], n_cols=n_cols, sharey="row"
      )
  
      if n_cols == 1:
          # different rows should have different y-limits
          assert axes[0, 0].get_ylim() != axes[1, 0].get_ylim()
      else:
          # same row should have the same y-limits
          assert axes[0, 0].get_ylim() == axes[0, 1].get_ylim()
  
imports: import re
  from copy import deepcopy
  import matplotlib.pyplot
  import numpy
  import pytest
  from numpy.testing import assert_allclose
  from pytest_lazyfixture import lazy_fixture
  from alibi.api.defaults import DEFAULT_DATA_ALE, DEFAULT_META_ALE
  from alibi.api.interfaces import Explanation
  from alibi.explainers.ale import _plot_one_ale_num, adaptive_grid, ale_num, get_quantiles, minimum_satisfied, plot_ale
label_desc: Use image node_id 17 for calling a global function with example usage: test_plot_ale_sharey_row(n_cols, explanation) without return types