code: def test_autoclass_content_both(app):
      app.config.autoclass_content = "both"
      options = {"members": None}
      actual = do_autodoc(
          app, "module", "target.autoclass_content", options
      )
      assert list(actual) == [
          "",
          ".. py:module:: target.autoclass_content",
          "",
          "",
          ".. py:class:: A()",
          "   :module: target.autoclass_content",
          "",
          "   A class having no __init__, no __new__",
          "",
          "",
          ".. py:class:: B()",
          "   :module: target.autoclass_content",
          "",
          "   A class having __init__(no docstring), no __new__",
          "",
          "",
          ".. py:class:: C()",
          "   :module: target.autoclass_content",
          "",
          "   A class having __init__, no __new__",
          "",
          "   __init__ docstring",
          "",
          "",
          ".. py:class:: D()",
          "   :module: target.autoclass_content",
          "",
          "   A class having no __init__, __new__(no docstring)",
          "",
          "",
          ".. py:class:: E()",
          "   :module: target.autoclass_content",
          "",
          "   A class having no __init__, __new__",
          "",
          "   __new__ docstring",
          "",
          "",
          ".. py:class:: F()",
          "   :module: target.autoclass_content",
          "",
          "   A class having both __init__ and __new__",
          "",
          "   __init__ docstring",
          "",
          "",
          ".. py:class:: G()",
          "   :module: target.autoclass_content",
          "",
          "   A class inherits __init__ without docstring.",
          "",
          "   __init__ docstring",
          "",
          "",
          ".. py:class:: H()",
          "   :module: target.autoclass_content",
          "",
          "   A class inherits __new__ without docstring.",
          "",
          "   __new__ docstring",
          "",
      ]
  
imports: import platform
  import sys
  from contextlib import contextmanager
  import pytest
  from sphinx.testing import restructuredtext
  from tests.test_extensions.test_ext_autodoc import do_autodoc
label_desc: Use image node_id 7 for calling a global function with example usage: test_autoclass_content_both(app) without return types