code: def _write_dummy_data_to_disk(tmpdir, file_name, table):
      path = os.path.join(str(tmpdir), file_name)
      with pa.ipc.RecordBatchFileWriter(
          path, schema=table.schema
      ) as writer:
          writer.write_table(table)
      return path
  
imports: import os
  import pathlib
  import pytest
  import pyarrow
  import pyarrow.compute
  from pyarrow.lib import tobytes
  from pyarrow.lib import ArrowInvalid, ArrowNotImplementedError
label_desc: Use image node_id 2 for calling a global function with example usage: _write_dummy_data_to_disk(tmpdir, file_name, table) and returns: path