code: def test_plain_pager(mocker):
      pager_mock = mocker.patch("dvc.ui.pager.pager")
      ui.table(
          [("foo", "bar"), ("foo1", "bar1"), ("foo2", "bar2")],
          headers=["first", "second"],
          pager=True,
      )
  
      pager_mock.assert_called_once_with(
          textwrap.dedent(
              """\
              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 3 for calling a global function with example usage: test_plain_pager(mocker) without return types