code: def write_block_to_file(
      self, block: BlockAccessor, file: "pyarrow.NativeFile"
  ):
      import pyarrow.parquet as pq
  
      writer_args = _resolve_kwargs(
          self.arrow_parquet_args_fn, **self.arrow_parquet_args
      )
      pq.write_table(block.to_arrow(), file, **writer_args)
  
file_path: ray/python/ray/data/datasource/parquet_datasink.py
imports: import logging
  from typing import TYPE_CHECKING, Any, Callable, Dict, Optional
  from ray.data.block import BlockAccessor
  from ray.data.datasource.block_path_provider import BlockWritePathProvider
  from ray.data.datasource.file_based_datasource import _resolve_kwargs
  from ray.data.datasource.file_datasink import BlockBasedFileDatasink
  from ray.data.datasource.filename_provider import FilenameProvider
label_desc: Use image node_id 2 for calling the _ParquetDatasink obj's underlying member method code with example usage: obj.write_block_to_file(block, file) without return types