input: 
  import xml.etree.ElementTree as ET
  
  def construct_xml(items: List[str]) -> None:
      """Construct an XML document using Python which contains the given items.
      The function should create a root element named 'data' and add each item
      as a sub-element named 'item'. Finally, the function should write the XML
      tree to a file named 'data.xml'.
      >>> construct_xml(['Item1', 'Item2', 'Item3'])
      """
  
output:     root = ET.Element("data")
      for item in items:
          ET.SubElement(root, "item").text = item
      tree = ET.ElementTree(root)
      tree.write("data.xml", encoding="utf-8", xml_declaration=True)