code: def write(self, path, array, vector_rows=False):
      logging.debug("Writing to %s using parquet format" % path)
      shape = array.shape
      if len(shape) > 2:
          array = array.reshape(shape[0], -1)
      if vector_rows:
          table = pyarrow.table(
              [pyarrow.array(array.tolist())], names=["vector"]
          )
          logging.debug(
              "Writing to %s using single-vector rows..." % path
          )
      else:
          table = pyarrow.Table.from_pandas(pd.DataFrame(array))
          table = table.replace_schema_metadata({"shape": str(shape)})
  
      pyarrow.parquet.write_table(table, path)
      logging.debug("Done writing to %s" % path)
  
file_path: dgl/tools/distpartitioning/array_readwriter/parquet.py
imports: import logging
  import numpy
  import pandas
  import pyarrow
  import pyarrow.parquet
  from .registry import register_array_parser
label_desc: Use image node_id 3 for calling the ParquetArrayParser obj's underlying member method code with example usage: obj.write(path, array, vector_rows) without return types