class_docstr: Interaction tab for slice visualization.
  
  Attributes
  ----------
  name : str
      Name of the tab.
class_docstr_tok: ["Interaction","tab","for","slice","visualization",".","Attributes","--","--","--","--","--","name",":","str","Name","of","the","tab","."]
code: def _toggle_opacity(self, checkbox):
      if "" in checkbox.checked_labels:
          self._slice_opacity.selected_value = 1
          self._slice_opacity.obj.value = 1
      else:
          self._slice_opacity.selected_value = 0
          self._slice_opacity.obj.value = 0
      self._update_opacities()
  
imports: import warnings
  from functools import partial
  import numpy
  from dipy.utils.optpkg import optional_package
  from dipy.viz.horizon.tab import HorizonTab, build_label, build_slider, build_switcher, build_checkbox
label_desc: Use image node_id 5 for calling the SlicesTab obj's underlying member method code with example usage: obj._toggle_opacity(checkbox) without return types