main
createNode
function createNode(string $key, string $type, $oldValue, $newValue, $children = null): array