code: def test_autoattribute_NewType_class_level(app):
      actual = do_autodoc(app, "class", "target.typevar.Class.T6")
      assert list(actual) == [
          "",
          ".. py:class:: Class.T6",
          "   :module: target.typevar",
          "",
          "   T6",
          "",
          "   alias of :py:class:`~datetime.date`",
          "",
      ]
  
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 20 for calling a global function with example usage: test_autoattribute_NewType_class_level(app) without return types