code: def test_axis_direction():
      # Check that axis direction is propagated on a floating axis
      fig = plt.figure()
      ax = Subplot(fig, 111)
      fig.add_subplot(ax)
      ax.axis["y"] = ax.new_floating_axis(
          nth_coord=1, value=0, axis_direction="left"
      )
      assert ax.axis["y"]._axis_direction == "left"
  
file_path: matplotlib/lib/mpl_toolkits/axisartist/tests/test_floating_axes.py
imports: import numpy
  import matplotlib.pyplot
  import matplotlib.projections
  import matplotlib.transforms
  from matplotlib.testing.decorators import image_comparison
  from mpl_toolkits.axisartist.axislines import Subplot
  from mpl_toolkits.axisartist.floating_axes import FloatingAxes, GridHelperCurveLinear
  from mpl_toolkits.axisartist.grid_finder import FixedLocator
  from mpl_toolkits.axisartist import angle_helper
label_desc: Use image node_id 4 for calling a global function with example usage: test_axis_direction() without return types