code: def test_python_execution_with_OO() -> None:
      """Running python with -OO will discard docstrings (__doc__ is None)
      which can cause problems if docstrings are naively formatted.
  
      This test ensures that the all modules are importable, even with -OO set.
  
      If you encounter a new problem with docstrings being formatted, try
      using format_docstring.
      """
      imports = [
          f"import {mod}" for mod in ls_modules(skip_prefixes=SKIP)
      ]
  
      proc = Popen([python, "-OO", "-"], stdout=PIPE, stdin=PIPE)
      proc.communicate("\n".join(imports).encode("utf-8"))
      proc.wait()
  
      assert proc.returncode == 0, "Execution with -OO failed"
  
imports: from __future__ import annotations
  import pytest
  from subprocess import PIPE, Popen
  from sys import executable
  from typing import Sequence
  from tests.support.util.project import ls_modules
label_desc: Use image node_id 1 for calling a global function with example usage: test_python_execution_with_OO() without return types