code: def set_ownership(self):
          
          assert self.section is not None
  
          for t in self.children:
              t.parent = self
              t._section = self.section
              t.doc = self.doc
              t.set_ownership()
docs: Recursivelt set the parent, section and doc for a children