code: def __toggle_view_mode(self, radio):
      view_mode = self.__view_modes[radio.checked_labels[0]]
      # view_mode==0: Cross section - view_mode==1: Range
      if view_mode:
          self.__actor.display_extent(
              self.__actor.low_ranges[0],
              self.__actor.high_ranges[0],
              self.__actor.low_ranges[1],
              self.__actor.high_ranges[1],
              self.__actor.low_ranges[2],
              self.__actor.high_ranges[2],
          )
          self.__hide_cross_section_sliders()
          self.__show_range_sliders()
      else:
          self.__actor.display_cross_section(
              self.__actor.cross_section[0],
              self.__actor.cross_section[1],
              self.__actor.cross_section[2],
          )
          self.__hide_range_sliders()
          self.__show_cross_section_sliders()
  
imports: import numpy
  from dipy.utils.optpkg import optional_package
  from dipy.viz.horizon.tab import HorizonTab, build_label, color_double_slider, color_single_slider
label_desc: Use image node_id 14 for calling the PeaksTab obj's underlying member method code with example usage: obj.__toggle_view_mode(radio) without return types