this shoudl be `IPython.pager.collapse();``

the `collapse_pager` in here should probably be made private and is called from `pager.collapse`