code: def build_label(
      text, font_size=16, bold=False, is_horizon_label=False
  ):
      """Simple utility function to build labels.
  
      Parameters
      ----------
      text : str
      font_size : int, optional
      bold : bool, optional
  
      Returns
      -------
      label : TextBlock2D
      """
  
      label = ui.TextBlock2D()
      label.message = text
      label.font_size = font_size
      label.font_family = "Arial"
      label.justification = "left"
      label.bold = bold
      label.italic = False
      label.shadow = False
      label.actor.GetTextProperty().SetBackgroundColor(0, 0, 0)
      label.actor.GetTextProperty().SetBackgroundOpacity(0.0)
      label.color = (0.7, 0.7, 0.7)
  
      if is_horizon_label:
          return HorizonUIElement(True, text, label)
      return label
  
imports: from typing import Any
  from dataclasses import dataclass
  import warnings
  from abc import ABC, abstractmethod
  import numpy
  from dipy.utils.optpkg import optional_package
label_desc: Use image node_id 1 for calling a global function with example usage: build_label(text, font_size, bold, is_horizon_label) and returns: label, HorizonUIElement