code: def readBinaryFiles(
      self,
      path,
      recursive=False,
      sampleRatio=1.0,
      inspectZip=True,
      seed=0,
  ):
      """
      Reads the directory of binary files from the local or remote (WASB) source
      This function is attached to SparkSession class.
  
      :Example:
  
      >>> spark.readBinaryFiles(path, recursive, sampleRatio = 1.0, inspectZip = True)
  
      Args:
           path (str): Path to the file directory
           recursive (b (double): Fraction of the files loaded into the dataframe
  
      Returns:
          DataFrame: DataFrame with a single column "value"; see binaryFileSchema for details
  
      """
      ctx = SparkContext.getOrCreate()
      reader = (
          ctx._jvm.com.microsoft.azure.synapse.ml.io.binary.BinaryFileReader
      )
      sql_ctx = pyspark.SQLContext.getOrCreate(ctx)
      jsession = sql_ctx.sparkSession._jsparkSession
      jresult = reader.read(
          path,
          recursive,
          jsession,
          float(sampleRatio),
          inspectZip,
          seed,
      )
      return DataFrame(jresult, sql_ctx)
  
file_path: SynapseML/core/src/main/python/synapse/ml/io/binary/BinaryFileReader.py
imports: import sys
  import pyspark
  from pyspark import SparkContext
  from pyspark import sql
  from pyspark.ml.param.shared import *
  from pyspark.sql import DataFrame
  from pyspark.sql.types import *
label_desc: Use image node_id 1 for calling a global function with example usage: readBinaryFiles(path, recursive, sampleRatio, inspectZip, seed) and returns: DataFrame