code: def register_child(self, block, name=None):
          
          if name is None:
              name = str(len(self._children))
          self._children[name] = block
docs: Registers block as a child of self. :py:class:`Block` s assigned to self as
          attributes will be registered automatically.