code: def toggle(self, all=None, ticks=None, ticklabels=None, label=None):
      if all:
          _ticks, _ticklabels, _label = True, True, True
      elif all is not None:
          _ticks, _ticklabels, _label = False, False, False
      else:
          _ticks, _ticklabels, _label = None, None, None
  
      if ticks is not None:
          _ticks = ticks
      if ticklabels is not None:
          _ticklabels = ticklabels
      if label is not None:
          _label = label
  
      if _ticks is not None:
          tickparam = {f"tick{self._axisnum}On": _ticks}
          self._axis.set_tick_params(**tickparam)
      if _ticklabels is not None:
          tickparam = {f"label{self._axisnum}On": _ticklabels}
          self._axis.set_tick_params(**tickparam)
  
      if _label is not None:
          pos = self._axis.get_label_position()
          if (pos == self._axis_direction) and not _label:
              self._axis.label.set_visible(False)
          elif _label:
              self._axis.label.set_visible(True)
              self._axis.set_label_position(self._axis_direction)
  
file_path: matplotlib/lib/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 7 for calling the SimpleAxisArtist obj's underlying member method code with example usage: obj.toggle(all, ticks, ticklabels, label) without return types