code: def test_shared_and_moved():
      # test if sharey is on, but then tick_left is called that labels don't
      # re-appear.  Seaborn does this just to be sure yaxis is on left...
      f, (a1, a2) = plt.subplots(1, 2, sharey=True)
      check_ticklabel_visible([a2], [True], [False])
      a2.yaxis.tick_left()
      check_ticklabel_visible([a2], [True], [False])
  
      f, (a1, a2) = plt.subplots(2, 1, sharex=True)
      check_ticklabel_visible([a1], [False], [True])
      a2.xaxis.tick_bottom()
      check_ticklabel_visible([a1], [False], [True])
  
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 8 for calling a global function with example usage: test_shared_and_moved() without return types