<prompt> Input safu: 1, 2, 3, 4Kuandika code kubadilisha safu ya integer katika mti binary.  <response>: Heres an example of a Python code that converts an array of integers into a binary tree:pythonfrom queue import Queueclass TreeNode: def __init__self, key: self.left None self.right None self.val keydef insert_node_level_ordernumbers: q Queue n lennumbers if not numbers: return None root TreeNodenumbers0 q.putroot i 1 while not q.empty: node q.get insert left child if i n: node.left TreeNodenumbersi q.putnode.left i 1 insert right child if i n: node.right TreeNodenumbersi q.putnode.right i 1 return rootdef inordernode: if node: inordernode.left printnode.val inordernode.rightarr 1, 2, 3, 4root insert_node_level_orderarrinorderrootThis code represents one way of converting an array into a binary tree by inserting elements level by level in the tree. The input array is given as 1, 2, 3, 4 and the function insert_node_level_order takes the input array and returns the root node of the binary tree. 