def METHOD_NAME(self, Document, Section, SubSection):
    path = ~ AttrPath(SubSection, 'section.document')
    assert path.parts == [
        Document.sections,
        Section.subsections
    ]
    assert str(path.path) == 'sections.subsections'