code: def nested_pack(flat, structure):
      """
      Restore nested structure from flattened state
      :param flat: result of nested_flatten
      :param structure: used as example when recovering structure
      :returns: nested structure like :structure: filled with elements of :flat:
      """
      return _nested_pack(iter(flat), structure)
  
label_desc: Use image node_id 3 for calling a global function with example usage: nested_pack(flat, structure) and returns: _nested_pack