code: def test_stream_read_options_overwrite(self):
      bad_schema = StructType(
          [StructField("test", IntegerType(), False)]
      )
      schema = StructType([StructField("data", StringType(), False)])
      # SPARK-32516 disables the overwrite behavior by default.
      with self.sql_conf(
          {"spark.sql.legacy.pathOptionBehavior.enabled": True}
      ):
          df = (
              self.spark.readStream.format("csv")
              .option("path", "python/test_support/sql/fake")
              .schema(bad_schema)
              .load(
                  path="python/test_support/sql/streaming",
                  schema=schema,
                  format="text",
              )
          )
          self.assertTrue(df.isStreaming)
          self.assertEqual(
              df.schema.simpleString(), "struct<data:string>"
          )
  
imports: import os
  import shutil
  import tempfile
  import time
  from pyspark.sql import Row
  from pyspark.sql.functions import lit
  from pyspark.sql.types import StructType, StructField, IntegerType, StringType
  from pyspark.testing.sqlutils import ReusedSQLTestCase
label_desc: Use image node_id 4 for calling the StreamingTestsMixin obj's underlying member method code with example usage: obj.test_stream_read_options_overwrite() without return types