def METHOD_NAME(capsys, extra_opts):
    ui.table(
        [("foo", "bar"), ("foo1", "bar1"), ("foo2", "bar2")],
        headers=["first", "second"],
        rich_table=True,
        **extra_opts,
    )
    # 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",
    ]