code: def test_rich_simple(capsys):
      ui.table(
          [("foo", "bar"), ("foo1", "bar1"), ("foo2", "bar2")],
          headers=["first", "second"],
          rich_table=True,
      )
      # not able to test the actual style for now
      captured = capsys.readouterr()
      assert [
          row.strip()
          for row in captured.out.splitlines()
          if row.strip()
      ] == [
          "first  second",
          "foo    bar",
          "foo1   bar1",
          "foo2   bar2",
      ]
  
file_path: dvc/tests/unit/ui/test_table.py
imports: import textwrap
  import pytest
  from rich.style import Style
  from dvc.ui import ui
label_desc: Use image node_id 5 for calling a global function with example usage: test_rich_simple(capsys) without return types