code: def write(self, dataframe, crypto_mode, primary_key_name=""):
      if isinstance(crypto_mode, CryptoMode):
          crypto_mode = crypto_mode.value
      df_writer = callBigDlFunc(
          self.bigdl_type,
          "write",
          self.value,
          dataframe,
          crypto_mode,
          primary_key_name,
      )
      return EncryptedDataFrameWriter(self.bigdl_type, df_writer)
  
imports: from bigdl.ppml.api import *
  from bigdl.ppml.utils.log4Error import *
  from enum import Enum
  from pyspark.sql import SparkSession
  from pyspark.ml.wrapper import JavaParams
label_desc: Use image node_id 3 for calling the PPMLContext obj's underlying member method code with example usage: obj.write(dataframe, crypto_mode, primary_key_name) and returns: EncryptedDataFrameWriter