code: def test_decode_issue_2688(ansi_bytes, expected_text):
      text = Text.from_ansi(ansi_bytes.decode())
  
      assert str(text) == expected_text
  
file_path: rich/tests/test_ansi.py
imports: import pytest
  from rich.ansi import AnsiDecoder
  from rich.console import Console
  from rich.style import Style
  from rich.text import Span, Text
label_desc: Use image node_id 3 for calling a global function with example usage: test_decode_issue_2688(ansi_bytes, expected_text) without return types