code: def test_xml(self):
      tmpPath = tempfile.mkdtemp()
      shutil.rmtree(tmpPath)
      xsdPath = tempfile.mkdtemp()
      xsdString = """<?xml version="1.0" encoding="UTF-8" ?>
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
              <xs:element name="person">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="name" type="xs:string" />
                    <xs:element name="age" type="xs:long" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:schema>"""
      try:
          with open(os.path.join(xsdPath, "people.xsd"), "w") as f:
              _ = f.write(xsdString)
          df = self.spark.createDataFrame(
              [("Hyukjin", 100), ("Aria", 101), ("Arin", 102)]
          ).toDF("name", "age")
          df.write.xml(tmpPath, rootTag="people", rowTag="person")
          people = self.spark.read.xml(
              tmpPath,
              rowTag="person",
              rowValidationXSDPath=os.path.join(xsdPath, "people.xsd"),
          )
          expected = [
              Row(age=100, name="Hyukjin"),
              Row(age=101, name="Aria"),
              Row(age=102, name="Arin"),
          ]
          self.assertEqual(people.sort("age").collect(), expected)
          self.assertEqual(
              people.schema,
              StructType(
                  [
                      StructField("age", LongType(), True),
                      StructField("name", StringType(), True),
                  ]
              ),
          )
      finally:
          shutil.rmtree(tmpPath)
          shutil.rmtree(xsdPath)
  
imports: import shutil
  import tempfile
  import uuid
  import os
  from pyspark.sql import Row
  from pyspark.sql.types import IntegerType, StructField, StructType, LongType, StringType
  from pyspark.testing.sqlutils import ReusedSQLTestCase
label_desc: Use image node_id 7 for calling the DataSourcesTestsMixin obj's underlying member method code with example usage: obj.test_xml() without return types