code: def share_y(ax):
      """Manually share y axis on an array of axis
  
      Parameters
      ----------
      ax : `np.ndarray`
          2d array of axes that will share y
  
      Notes
      -----
      This utlity is useful as sharey kwarg of subplots cannot be applied only
      on a subset of the axes
      """
      n_rows, n_cols = ax.shape
      get_ylim = np.vectorize(lambda axis: axis.get_ylim())
      y_min, y_max = get_ylim(ax)
      y_min_min = y_min.min()
      y_max_max = y_max.max()
      for i in range(n_rows):
          for j in range(n_cols):
              ax[i, j].set_ylim([y_min_min, y_max_max])
              if j != 0:
                  ax[i, j].get_yaxis().set_ticks([])
  
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: share_y(ax) without return types