code: def float_generator(dtype, size, min_bound=None, max_bound=None):
      """
      Generator for float data
      """
      if min_bound is not None and max_bound is not None:
          low, high = min_bound, max_bound
          return lambda: np.random.uniform(
              low=low,
              high=high,
              size=size,
          )
      else:
          finfo = np.finfo(dtype)
          return (
              lambda: np.random.uniform(
                  low=finfo.min / 2,
                  high=finfo.max / 2,
                  size=size,
              )
              * 2
          )
  
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 7 for calling a global function with example usage: float_generator(dtype, size, min_bound, max_bound) and returns: function, function