def METHOD_NAME(self, index):
    """Returns the corresponding :class:`Node` or :class:`Item3D`.
    :param QModelIndex index:
    :rtype: Node or Item3D
    """
    return index.internalPointer() if index.isValid() else self._root