class_docstr: Parquet Function-Wrapper Class
  
  Writes a DataFrame partition into a distinct parquet
  file. When called, the function also requires the
  current block index (via ``blockwise.BlockIndex``).
class_docstr_tok: ["Parquet","Function-Wrapper","Class","Writes","a","DataFrame","partition","into","a","distinct","parquet","file",".","When","called",",","the","function","also","requires","the","current","block","index","(","via","``","blockwise.BlockIndex","``",")","."]
code: def __init__(
      self,
      engine,
      path,
      fs,
      partition_on,
      write_metadata_file,
      i_offset,
      name_function,
      kwargs_pass,
  ):
      self.engine = engine
      self.path = path
      self.fs = fs
      self.partition_on = partition_on
      self.write_metadata_file = write_metadata_file
      self.i_offset = i_offset
      self.name_function = name_function
      self.kwargs_pass = kwargs_pass
  
      # NOTE: __name__ must be with "to-parquet"
      # for the name of the resulting `Blockwise`
      # layer to begin with "to-parquet"
      self.__name__ = "to-parquet"
  
imports: from __future__ import annotations
  import contextlib
  import math
  import warnings
  from typing import Literal
  import pandas
  import tlz
  from fsspec.core import get_fs_token_paths
  from fsspec.utils import stringify_path
  import dask
  from dask.base import tokenize
  from dask.blockwise import BlockIndex
  from dask.dataframe.backends import dataframe_creation_dispatch
  from dask.dataframe.core import DataFrame, Scalar
  from dask.dataframe.io.io import from_map
  from dask.dataframe.io.parquet.utils import Engine, _sort_and_analyze_paths, _split_user_options
  from dask.dataframe.io.utils import DataFrameIOFunction, _is_local_fs
  from dask.dataframe.methods import concat
  from dask.delayed import Delayed
  from dask.highlevelgraph import HighLevelGraph
  from dask.layers import DataFrameIOLayer
  from dask.utils import apply, import_required, natural_sort_key, parse_bytes
label_desc: Use image node_id 1 to create a new ToParquetFunctionWrapper object  with example: obj = ToParquetFunctionWrapper(engine, path, fs, partition_on, write_metadata_file, i_offset, name_function, kwargs_pass)