code: def test_automodule_inherited_members(app):
      options = {
          "members": None,
          "undoc-members": None,
          "inherited-members": "Base, list",
      }
      actual = do_autodoc(app, "module", "target.inheritance", options)
      assert list(actual) == [
          "",
          ".. py:module:: target.inheritance",
          "",
          "",
          ".. py:class:: Base()",
          "   :module: target.inheritance",
          "",
          "",
          "   .. py:attribute:: Base.inheritedattr",
          "      :module: target.inheritance",
          "      :value: None",
          "",
          "      docstring",
          "",
          "",
          "   .. py:method:: Base.inheritedclassmeth()",
          "      :module: target.inheritance",
          "      :classmethod:",
          "",
          "      Inherited class method.",
          "",
          "",
          "   .. py:method:: Base.inheritedmeth()",
          "      :module: target.inheritance",
          "",
          "      Inherited function.",
          "",
          "",
          "   .. py:method:: Base.inheritedstaticmeth(cls)",
          "      :module: target.inheritance",
          "      :staticmethod:",
          "",
          "      Inherited static method.",
          "",
          "",
          ".. py:class:: Derived()",
          "   :module: target.inheritance",
          "",
          "",
          "   .. py:method:: Derived.inheritedmeth()",
          "      :module: target.inheritance",
          "",
          "      Inherited function.",
          "",
          "",
          ".. py:class:: MyList(iterable=(), /)",
          "   :module: target.inheritance",
          "",
          "",
          "   .. py:method:: MyList.meth()",
          "      :module: target.inheritance",
          "",
          "      docstring",
          "",
      ]
  
file_path: sphinx/tests/test_extensions/test_ext_autodoc_automodule.py
imports: import sys
  import pytest
  from tests.test_extensions.test_ext_autodoc import do_autodoc
label_desc: Use image node_id 5 for calling a global function with example usage: test_automodule_inherited_members(app) without return types