code: def test_pager(mocker, monkeypatch):
      monkeypatch.setenv(DVC_PAGER, "my-pager")
      mocker.patch("sys.stdout.isatty", return_value=True)
  
      m_make_pager = mocker.patch("dvc.ui.pager.make_pager")
      _pager = m_make_pager.return_value = mocker.MagicMock()
  
      pager("hello world")
      m_make_pager.assert_called_once_with("my-pager")
      _pager.assert_called_once_with("hello world")
  
file_path: dvc/tests/unit/ui/test_pager.py
imports: import pytest
  from dvc.env import DVC_PAGER
  from dvc.ui.pager import DEFAULT_PAGER, LESS, PAGER_ENV, find_pager, make_pager, pager
label_desc: Use image node_id 10 for calling a global function with example usage: test_pager(mocker, monkeypatch) without return types