docstr: Write RecordBatch to the Parquet file.
  
  Parameters
  ----------
  batch : RecordBatch
  row_group_size : int, default None
      Maximum number of rows in written row group. If None, the
      row group size will be the minimum of the RecordBatch
      size and 1024 * 1024.  If set larger than 64Mi then 64Mi
      will be used instead.
docstr_tok: ["Write","RecordBatch","to","the","Parquet","file",".","Parameters","--","--","--","--","--","batch",":","RecordBatch","row_group_size",":","int",",","default","None","Maximum","number","of","rows","in","written","row","group",".","If","None",",","the","row","group","size","will","be","the","minimum","of","the","RecordBatch","size","and","1024","*","1024",".","If","set","larger","than","64Mi","then","64Mi","will","be","used","instead","."]
code: def write_batch(self, batch, row_group_size=None):
      """
      Write RecordBatch to the Parquet file.
  
      Parameters
      ----------
      batch : RecordBatch
      row_group_size : int, default None
          Maximum number of rows in written row group. If None, the
          row group size will be the minimum of the RecordBatch
          size and 1024 * 1024.  If set larger than 64Mi then 64Mi
          will be used instead.
      """
      table = pa.Table.from_batches([batch], batch.schema)
      self.write_table(table, row_group_size)
  
imports: from collections import defaultdict
  from contextlib import nullcontext
  from functools import reduce
  import inspect
  import json
  import os
  import re
  import operator
  import warnings
  import pyarrow
  from pyarrow._parquet import ParquetReader, Statistics, FileMetaData, RowGroupMetaData, ColumnChunkMetaData, ParquetSchema, ColumnSchema, ParquetLogicalType, FileEncryptionProperties, FileDecryptionProperties, SortingColumn
  from pyarrow.fs import LocalFileSystem, FileSystem, FileType, _resolve_filesystem_and_path, _ensure_filesystem
  from pyarrow import filesystem
  from pyarrow.util import guid, _is_path_like, _stringify_path, _deprecate_api
label_desc: Use image node_id 6 for calling the ParquetWriter obj's underlying member method code with example usage: obj.write_batch(batch, row_group_size) without return types