class_docstr: Binary datasource, for reading and writing binary files.
code: def _read_stream(self, f: "pyarrow.NativeFile", path: str):
      data = f.readall()
  
      builder = ArrowBlockBuilder()
      item = {self._COLUMN_NAME: data}
      builder.add(item)
      yield builder.build()
  
file_path: ray/python/ray/data/datasource/binary_datasource.py
imports: from typing import TYPE_CHECKING
  from ray.data._internal.arrow_block import ArrowBlockBuilder
  from ray.data.datasource.file_based_datasource import FileBasedDatasource
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 1 for calling the BinaryDatasource obj's underlying member method code with example usage: obj._read_stream(f, path) without return types