code: def test_build_checkbox():
      checkbox = build_checkbox(["Hello", "Hi"], ["Hello"])
  
      npt.assert_equal(len(checkbox.obj.checked_labels), 1)
      npt.assert_equal(len(checkbox.obj.labels), 2)
      npt.assert_equal(checkbox.selected_value, ["Hello"])
  
      with warnings.catch_warnings(record=True) as l_warns:
          checkbox = build_checkbox()
          npt.assert_equal(checkbox, None)
          check_for_warnings(
              l_warns,
              "At least one label needs to be to create"
              + " checkboxes",
          )
  
      with warnings.catch_warnings(record=True) as l_warns:
          checkbox = build_checkbox([])
          npt.assert_equal(checkbox, None)
          check_for_warnings(
              l_warns,
              "At least one label needs to be to create"
              + " checkboxes",
          )
  
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 4 for calling a global function with example usage: test_build_checkbox() without return types