code: def status(app: SphinxTestApp) -> StringIO:
      """
      Back-compatibility for testing with previous @with_app decorator
      """
      return app._status
  
imports: from __future__ import annotations
  import shutil
  import subprocess
  import sys
  from collections import namedtuple
  from io import StringIO
  from typing import TYPE_CHECKING, Any, Callable
  import pytest
  from sphinx.testing.util import SphinxTestApp, SphinxTestAppWrapperForSkipBuilding
label_desc: Use image node_id 6 for calling a global function with example usage: status(app) and returns: app