code: def test_build_label():
      regular_label = build_label(text="Hello")
      npt.assert_equal(regular_label.message, "Hello")
      npt.assert_equal(regular_label.font_size, 16)
      npt.assert_equal(regular_label.bold, False)
      check_label(regular_label)
  
      regular_label = build_label(text="Hello", font_size=10, bold=True)
      npt.assert_equal(regular_label.message, "Hello")
      npt.assert_equal(regular_label.font_size, 10)
      npt.assert_equal(regular_label.bold, True)
      check_label(regular_label)
  
      horizon_label = build_label(text="Hello", is_horizon_label=True)
      npt.assert_equal(horizon_label.obj.message, "Hello")
      npt.assert_equal(horizon_label.obj.font_size, 16)
      npt.assert_equal(horizon_label.obj.bold, False)
      check_label(horizon_label.obj)
  
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 2 for calling a global function with example usage: test_build_label() without return types