code: def test_ignorewhitespace_csv(self):
      tmpPath = tempfile.mkdtemp()
      shutil.rmtree(tmpPath)
      self.spark.createDataFrame([[" a", "b  ", " c "]]).write.csv(
          tmpPath,
          ignoreLeadingWhiteSpace=False,
          ignoreTrailingWhiteSpace=False,
      )
  
      expected = [Row(value=" a,b  , c ")]
      readback = self.spark.read.text(tmpPath)
      self.assertEqual(readback.collect(), expected)
      shutil.rmtree(tmpPath)
  
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 6 for calling the DataSourcesTestsMixin obj's underlying member method code with example usage: obj.test_ignorewhitespace_csv() without return types