input: 
  import xml.etree.ElementTree as ET
  
  def create_xml_document(items: List[str], filename: str) -> None:
      """ Construct an XML document using Python which contains the given items.
      The XML document will have a root element 'data' and sub-elements 'item' for each item.
      
      >>> create_xml_document(['Item1', 'Item2', 'Item3'], 'data.xml')
      # The function modifies 'data.xml' to contain the XML structure:
      # <data>
      #   <item>Item1</item>
      #   <item>Item2</item>
      #   <item>Item3</item>
      # </data>
      """
  
output:     root = ET.Element("data")
      for item in items:
          ET.SubElement(root, "item").text = item
      tree = ET.ElementTree(root)
      tree.write(filename, encoding="utf-8", xml_declaration=True)