code: def __init__(
      self, plan: "LogicalPlan", session: "SparkSession"
  ) -> None:
      self._session = session
      self._write_stream = WriteStreamOperation(plan)
      self._write_proto = self._write_stream.write_op
  
imports: from pyspark.sql.connect.utils import check_dependencies
  import sys
  import pickle
  from typing import cast, overload, Callable, Dict, List, Optional, TYPE_CHECKING, Union
  from pyspark.serializers import CloudPickleSerializer
  from pyspark.sql.connect.plan import DataSource, LogicalPlan, Read, WriteStreamOperation
  import pyspark.sql.connect.proto
  from pyspark.sql.connect.readwriter import OptionUtils, to_str
  from pyspark.sql.connect.streaming.query import StreamingQuery
  from pyspark.sql.streaming.readwriter import DataStreamReader, DataStreamWriter
  from pyspark.sql.connect.utils import get_python_ver
  from pyspark.sql.types import Row, StructType
  from pyspark.errors import PySparkTypeError, PySparkValueError, PySparkPicklingError
label_desc: Use image node_id 1 to create a new DataStreamWriter object  with example: obj = DataStreamWriter(plan, session)