code: def _write(tbl, path, format):
      if format["name"] == "parquet":
          if isinstance(tbl, pa.Table):
              pq.write_table(
                  tbl, path, row_group_size=format["row_group_size"]
              )
          elif isinstance(tbl, pd.DataFrame):
              tbl.to_parquet(
                  path, row_group_size=format["row_group_size"]
              )
  
imports: import copy
  import random
  import string
  import uuid
  from multiprocessing import Pool
  import numpy
  import pandas
  import pyarrow
  from pyarrow import parquet
  import cudf
  from cudf.utils.dtypes import np_to_pa_dtype
label_desc: Use image node_id 1 for calling a global function with example usage: _write(tbl, path, format) without return types