code: def decimal_generator(dtype, size):
      max_integral = 10 ** (dtype.precision - dtype.scale) - 1
      max_float = (10**dtype.scale - 1) if dtype.scale != 0 else 0
      return lambda: (
          np.random.uniform(
              low=-max_integral,
              high=max_integral + (max_float / 10**dtype.scale),
              size=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 11 for calling a global function with example usage: decimal_generator(dtype, size) and returns: function