code: def test_class_doc_from_class(app):
      options = {"members": None, "class-doc-from": "class"}
      actual = do_autodoc(
          app, "class", "target.autoclass_content.C", options
      )
      assert list(actual) == [
          "",
          ".. py:class:: C()",
          "   :module: target.autoclass_content",
          "",
          "   A class having __init__, no __new__",
          "",
      ]
  
imports: from __future__ import annotations
  import typing
  from typing import Union
  import pytest
  from tests.test_extensions.test_ext_autodoc import do_autodoc
label_desc: Use image node_id 12 for calling a global function with example usage: test_class_doc_from_class(app) without return types