code: def test_title():
      control_segment = Control.title("hello").segment
      assert control_segment == Segment(
          "\x1b]0;hello\x07",
          None,
          [(ControlType.SET_WINDOW_TITLE, "hello")],
      )
  
file_path: rich/tests/test_control.py
imports: from rich.control import Control, escape_control_codes, strip_control_codes
  from rich.segment import ControlType, Segment
label_desc: Use image node_id 7 for calling a global function with example usage: test_title() without return types