code: def test_autodata_typed_variable(app):
      actual = do_autodoc(app, "data", "target.typed_vars.attr2")
      assert list(actual) == [
          "",
          ".. py:data:: attr2",
          "   :module: target.typed_vars",
          "   :type: str",
          "",
          "   attr2",
          "",
      ]
  
imports: import pytest
  from tests.test_extensions.test_ext_autodoc import do_autodoc
label_desc: Use image node_id 3 for calling a global function with example usage: test_autodata_typed_variable(app) without return types