def METHOD_NAME(node, parent, deprel=None):
    """
    Attach a node to a new parent with a new deprel in the basic tree. In
    addition, if there are enhanced dependencies and there is just one incoming
    enhanced relation (this is the case in AnCora), this relation will be
    modified accordingly.
    """
    node.parent = parent
    if deprel:
        node.deprel = deprel
    if len(node.deps) == 1:
        node.deps[0]['parent'] = parent
        if deprel:
            node.deps[0]['deprel'] = deprel