code: def new_file(sink, schema, *, use_legacy_format=None, options=None):
      return RecordBatchFileWriter(
          sink,
          schema,
          use_legacy_format=use_legacy_format,
          options=options,
      )
  
imports: import os
  import pyarrow
  from pyarrow.lib import IpcReadOptions, IpcWriteOptions, ReadStats, WriteStats, Message, MessageReader, RecordBatchReader, _ReadPandasMixin, MetadataVersion, read_message, read_record_batch, read_schema, read_tensor, write_tensor, get_record_batch_size, get_tensor_size
  import pyarrow.lib
label_desc: Use image node_id 5 for calling a global function with example usage: new_file(sink, schema) and returns: RecordBatchFileWriter