input: def construct_xml_document(items: List[str]) -> None:
      """Construct an XML document using Python which contains the given list of items as sub-elements under the root element 'data'.
  
      >>> construct_xml_document(['Item1', 'Item2', 'Item3'])
      Creates an XML file named 'data.xml' with the following structure:
      <data>
          <item>Item1</item>
          <item>Item2</item>
          <item>Item3</item>
      </data>
      """
  
output:     from xml.etree.ElementTree import Element, SubElement, tostring
      from xml.dom.minidom import parseString
  
      root = Element('data')
      for item in items:
          sub_element = SubElement(root, 'item')
          sub_element.text = item
  
      xml_str = tostring(root, encoding='unicode')
      dom = parseString(xml_str)
      pretty_xml_str = dom.toprettyxml(indent="    ")
  
      with open('data.xml', 'w') as f:
          f.write(pretty_xml_str)