code: def test_nested_class():
      source = (
          "class Foo(object):\n"
          "    attr1 = None  #: comment1\n"
          "\n"
          "    class Bar(object):\n"
          "        attr2 = None  #: comment2\n"
      )
      parser = Parser(source)
      parser.parse()
      assert parser.comments == {
          ("Foo", "attr1"): "comment1",
          ("Foo.Bar", "attr2"): "comment2",
      }
      assert parser.definitions == {
          "Foo": ("class", 1, 5),
          "Foo.Bar": ("class", 4, 5),
      }
      assert parser.deforders == {
          "Foo": 0,
          "Foo.attr1": 1,
          "Foo.Bar": 2,
          "Foo.Bar.attr2": 3,
      }
  
imports: from sphinx.pycode.parser import Parser
  from sphinx.util.inspect import signature_from_str
label_desc: Use image node_id 12 for calling a global function with example usage: test_nested_class() without return types