code: def generate(
      path,
      parameters,
      format=None,
      use_threads=True,
  ):
      """
      Generate dataset using given parameters and write to given format
  
      Parameters
      ----------
      path : str or file-like object
          Path to write to
      parameters : Parameters
          Parameters specifying how to randomly generate data
      format : Dict
          Format to write
      """
      if format is None:
          format = {"name": "parquet", "row_group_size": 64}
      df = get_dataframe(parameters, use_threads)
  
      # Write
      _write(df, path, format)
  
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 3 for calling a global function with example usage: generate(path, parameters, format, use_threads) without return types