code: def make_viewer(mono=False, *loop_args, **loop_kwargs):
      
      viewer = StatisticsViewer()
      loop = viewer.loop(*loop_args, **loop_kwargs)
      if mono:
          loop.screen.set_terminal_properties(1)
      return (viewer, loop)
docs: Makes a :class:`profiling.viewer.StatisticsViewer` with common options.