code: def test_rich_pager(mocker):
      pager_mock = mocker.patch("dvc.ui.pager.pager")
  
      ui.table(
          [("foo", "bar"), ("foo1", "bar1"), ("foo2", "bar2")],
          headers=["first", "second"],
          rich_table=True,
          pager=True,
      )
      received_text = pager_mock.call_args[0][0]
      assert [
          row.strip()
          for row in received_text.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 9 for calling a global function with example usage: test_rich_pager(mocker) without return types