code: def make_pager(cmd=None):
      def _pager(text):
          return pydoc.tempfilepager(pydoc.plain(text), cmd)
  
      return _pager if cmd else pydoc.plainpager
  
file_path: dvc/dvc/ui/pager.py
imports: import os
  import pydoc
  from rich.pager import Pager
  from dvc.env import DVC_PAGER
  from dvc.log import logger
  from dvc.utils import format_link
label_desc: Use image node_id 2 for calling a global function with example usage: make_pager(cmd) and returns: unknown, pydoc