code: def test_build_slider():
      single_slider_label, single_slider = build_slider(5, 100)
      npt.assert_equal(single_slider_label.obj.message, "")
      npt.assert_equal(single_slider_label.obj.font_size, 16)
      npt.assert_equal(single_slider_label.obj.bold, False)
      npt.assert_equal(single_slider.obj.value, 5)
      npt.assert_equal(single_slider.obj.max_value, 100)
      npt.assert_equal(single_slider.obj.min_value, 0)
      npt.assert_equal(single_slider.obj.track.width, 450)
      npt.assert_equal(single_slider.obj.track.height, 3)
      npt.assert_equal(single_slider.obj.track.color, (0.8, 0.3, 0.0))
      npt.assert_equal(single_slider.obj.default_color, (1.0, 0.5, 0.0))
      npt.assert_equal(single_slider.obj.active_color, (0.9, 0.4, 0.0))
      npt.assert_equal(single_slider.obj.handle.color, (1.0, 0.5, 0.0))
      npt.assert_equal(single_slider.obj.handle.outer_radius, 8)
      npt.assert_equal(single_slider.obj.text.font_size, 16)
      npt.assert_equal(
          single_slider.obj.text_template, "{value:.1f} ({ratio:.0%})"
      )
      npt.assert_equal(single_slider.selected_value, 5)
  
      double_slider_label, double_slider = build_slider(
          (4, 5),
          100,
          text_template="{value:.1f}",
          is_double_slider=True,
      )
      npt.assert_equal(double_slider_label.obj.message, "")
      npt.assert_equal(double_slider_label.obj.font_size, 16)
      npt.assert_equal(double_slider_label.obj.bold, False)
      npt.assert_equal(double_slider.obj.max_value, 100)
      npt.assert_equal(double_slider.obj.min_value, 0)
      npt.assert_equal(double_slider.obj.track.width, 450)
      npt.assert_equal(double_slider.obj.track.height, 3)
      npt.assert_equal(double_slider.obj.track.color, (0.8, 0.3, 0.0))
      npt.assert_equal(double_slider.obj.default_color, (1.0, 0.5, 0.0))
      npt.assert_equal(double_slider.obj.active_color, (0.9, 0.4, 0.0))
      npt.assert_equal(
          double_slider.obj.handles[0].color, (1.0, 0.5, 0.0)
      )
      npt.assert_equal(
          double_slider.obj.handles[1].color, (1.0, 0.5, 0.0)
      )
      npt.assert_equal(double_slider.obj.handles[0].outer_radius, 8)
      npt.assert_equal(double_slider.obj.handles[1].outer_radius, 8)
      npt.assert_equal(double_slider.obj.text[0].font_size, 16)
      npt.assert_equal(double_slider.obj.text[1].font_size, 16)
      npt.assert_equal(double_slider.selected_value, (4, 5))
  
file_path: dipy/dipy/viz/horizon/tab/tests/test_base.py
imports: import pytest
  import warnings
  import numpy.testing
  from dipy.testing import check_for_warnings
  from dipy.utils.optpkg import optional_package
  from dipy.testing.decorators import use_xvfb
  from dipy.viz.horizon.tab.base import build_checkbox, build_label, build_slider, build_switcher
label_desc: Use image node_id 3 for calling a global function with example usage: test_build_slider() without return types