code: def deserialize(self, data: str) -> "Node":
      """Decodes your encoded data to tree.
  
      :type data: str
      :rtype: Node
      """
      # print(data)
      if len(data) == 0:
          return None
      elements = data.split(",")
      # print(elements)
      while elements[-1] == "#":
          elements.pop()
      # print(elements)
      root = Node(int(elements[0]), [])
      q = deque([root])
      for i in elements[1:]:
          # print(i)
          if i == "#":
              cur = q.popleft()
          else:
              node = Node(int(i), [])
              q.append(node)
              cur.children.append(node)
      return root
  
label_desc: Use image node_id 2 for calling the Codec obj's underlying member method code with example usage: obj.deserialize(data) and returns: root, None