def assembly(self):
    'Return the top-level parent of node\n\n        Example:\n            >>> parent1 = createNode("transform")\n            >>> parent2 = createNode("transform")\n            >>> child = createNode("transform", parent=parent1)\n            >>> grandchild = createNode("transform", parent=child)\n            >>> child.assembly() == parent1\n            True\n            >>> parent2.assembly() == parent2\n            True\n\n        '
    path = self._fn.getPath()
    root = None
    for level in range((path.length() - 1)):
        root = path.pop()
    return (self.__class__(root.node()) if root else self)
Return the top-level parent of node

Example:
    >>> parent1 = createNode("transform")
    >>> parent2 = createNode("transform")
    >>> child = createNode("transform", parent=parent1)
    >>> grandchild = createNode("transform", parent=child)
    >>> child.assembly() == parent1
    True
    >>> parent2.assembly() == parent2
    True
def assembly(self):
    'Return the top-level parent of node\n\n        Example:\n            >>> parent1 = createNode("transform")\n            >>> parent2 = createNode("transform")\n            >>> child = createNode("transform", parent=parent1)\n            >>> grandchild = createNode("transform", parent=child)\n            >>> child.assembly() == parent1\n            True\n            >>> parent2.assembly() == parent2\n            True\n\n        '
    path = self._fn.getPath()
    root = None
    for level in range((path.length() - 1)):
        root = path.pop()
    return (self.__class__(root.node()) if root else self)