code: def test_is_control():
      assert Segment("foo", Style(bold=True)).is_control == False
      assert Segment("foo", Style(bold=True), []).is_control == True
      assert (
          Segment(
              "foo", Style(bold=True), [(ControlType.HOME, 0)]
          ).is_control
          == True
      )
  
imports: from io import StringIO
  import pytest
  from rich.segment import ControlType, Segment, SegmentLines, Segments
  from rich.style import Style
label_desc: Use image node_id 15 for calling a global function with example usage: test_is_control() without return types