code: def generate_data(num_instances=100, shape=(32, 32, 3), dtype="np"):
      np.random.seed(SEED)
      data = np.random.rand(*((num_instances,) + shape))
      if data.dtype == np.float64:
          data = data.astype(np.float32)
      if dtype == "np":
          return data
      if dtype == "dataset":
          return tf.data.Dataset.from_tensor_slices(data)
  
file_path: autokeras/autokeras/test_utils.py
imports: import inspect
  import os
  import numpy
  import tensorflow
  from tensorflow import keras
  import autokeras
label_desc: Use image node_id 1 for calling a global function with example usage: generate_data(num_instances, shape, dtype) and returns: data, tf