code: def get_values_for_nested_data(
      dtype, lists_max_length=None, size=None
  ):
      """
      Returns list of values based on dtype.
      """
      if size is None:
          cardinality = np.random.randint(0, lists_max_length)
      else:
          cardinality = size
  
      dtype = cudf.dtype(dtype)
      if dtype.kind in ("i", "u"):
          values = int_generator(dtype=dtype, size=cardinality)()
      elif dtype.kind == "f":
          values = float_generator(dtype=dtype, size=cardinality)()
      elif dtype.kind in ("U", "O"):
          values = [
              _generate_string(
                  string.printable,
                  100,
              )
              for _ in range(cardinality)
          ]
      elif dtype.kind == "M":
          values = datetime_generator(
              dtype=dtype, size=cardinality
          )().astype(dtype)
      elif dtype.kind == "m":
          values = timedelta_generator(
              dtype=dtype, size=cardinality
          )().astype(dtype)
      elif dtype.kind == "b":
          values = boolean_generator(cardinality)().astype(dtype)
      else:
          raise TypeError(f"Unsupported dtype: {dtype}")
  
      return values
  
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 12 for calling a global function with example usage: get_values_for_nested_data(dtype, lists_max_length, size) and returns: values