code: def test_get_line_length():
      assert (
          Segment.get_line_length([Segment("foo"), Segment("bar")]) == 6
      )
  
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 7 for calling a global function with example usage: test_get_line_length() without return types