code: def __init__(self, axis, axisnum, spine):
      self._axis = axis
      self._axisnum = axisnum
      self.line = spine
  
      if isinstance(axis, XAxis):
          self._axis_direction = ["bottom", "top"][axisnum - 1]
      elif isinstance(axis, YAxis):
          self._axis_direction = ["left", "right"][axisnum - 1]
      else:
          raise ValueError(
              f"axis must be instance of XAxis or YAxis, but got {axis}"
          )
      super().__init__()
  
file_path: catboost/contrib/python/matplotlib/py3/mpl_toolkits/axes_grid1/mpl_axes.py
imports: import matplotlib.axes
  from matplotlib.artist import Artist
  from matplotlib.axis import XAxis, YAxis
label_desc: Use image node_id 1 to create a new SimpleAxisArtist object from inherited base classes: Artist with example: obj = SimpleAxisArtist(axis, axisnum, spine)