def METHOD_NAME(node: Node, key, pos, element) -> Node:
    child = Node(element)
    child.processor = node.processor
    child.level = node.level + 1
    child.position = pos
    child.parent = node
    child.paths = copy.copy(node.paths)
    child.key = key
    if pos > 0:
        child.key = "#{}".format(pos)
    child.paths.append(child.key)
    return child