code: def docx_text_from_xml(xml: str, config: TextProcessingConfig) -> str:
      
      root = ElementTree.fromstring(xml)
      return docx_text_from_xml_node(root, 0, config)
docs: Converts an XML tree of a DOCX file to string contents.
  
      Args:
          xml: raw XML text
          config: :class:`TextProcessingConfig` control object
  
      Returns:
          contents as a string