def row_generator(x):
    """Returns a single entry in the generated dataset. Return a bunch of random values as an example."""
    return {'id': x,
            'image1': np.random.randint(0, 255, dtype=np.uint8, size=(128, 256, 3)),
            'array_4d': np.random.randint(0, 255, dtype=np.uint8, size=(4, 128, 30, 3))}
Returns a single entry in the generated dataset. Return a bunch of random values as an example.
examples/hello_world/petastorm_dataset/generate_petastorm_dataset.py