code: def _create_and_resize_actors(self, vol_data, value_range):
      self._slice_actors[0] = actor.slicer(
          vol_data,
          affine=self._affine,
          value_range=value_range,
          interpolation="nearest",
      )
  
      self._resliced_vol = self._slice_actors[0].resliced_array()
  
      self._slice_actors[1] = self._slice_actors[0].copy()
      self._slice_actors[2] = self._slice_actors[0].copy()
  
      for slice_actor in self._slice_actors:
          slice_actor.AddObserver(
              "LeftButtonPressEvent",
              self._left_click_picker_callback,
              1.0,
          )
  
      if self._data_ndim == 4 and not self._rgb:
          self._data_shape = self._resliced_vol.shape + (
              self._data.shape[-1],
          )
      else:
          self._data_shape = self._resliced_vol.shape
  
imports: import warnings
  import numpy
  from scipy import stats
  from dipy.utils.optpkg import optional_package
label_desc: Use image node_id 4 for calling the SlicesVisualizer obj's underlying member method code with example usage: obj._create_and_resize_actors(vol_data, value_range) without return types