code: def textfile(
      self,
      path,
      min_partitions=None,
      crypto_mode="plain_text",
      primary_key_name="",
  ):
      if min_partitions is None:
          min_partitions = self.spark.sparkContext.defaultMinPartitions
      if isinstance(crypto_mode, CryptoMode):
          crypto_mode = crypto_mode.value
      return callBigDlFunc(
          self.bigdl_type,
          "textFile",
          self.value,
          path,
          min_partitions,
          crypto_mode,
          primary_key_name,
      )
  
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 4 for calling the PPMLContext obj's underlying member method code with example usage: obj.textfile(path, min_partitions, crypto_mode, primary_key_name) and returns: callBigDlFunc