code: def streamBinaryFiles(
      self, path, sampleRatio=1.0, inspectZip=True, seed=0
  ):
      """
      Streams the directory of binary files from the local or remote (WASB) source
      This function is attached to SparkSession class.
  
      :Example:
  
      >>> spark.streamBinaryFiles(path, sampleRatio = 1.0, inspectZip = True)
  
      Args:
           path (str): Path to the file directory
  
      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.stream(
          path, 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 2 for calling a global function with example usage: streamBinaryFiles(path, sampleRatio, inspectZip, seed) and returns: DataFrame