code: def test_node_creation_with_parent():
      """Test assignment of parent on initialization"""
      parent = TreeNode("test")
      child = TreeNode("test", parent)
  
      assert child.parent is parent
  
      assert parent.children[0] is child
  
imports: from orion.core.utils.tree import DepthFirstTraversal, PreOrderTraversal, TreeNode, flattened
label_desc: Use image node_id 3 for calling a global function with example usage: test_node_creation_with_parent() without return types