def METHOD_NAME(dataframe, shuffle=True, batch_size=32):
    """A utility method to create a tf.data dataset from a Pandas Dataframe."""
    dataframe = dataframe.copy()
    labels = dataframe.pop('target')
    ds = tf.data.Dataset.from_tensor_slices((dict(dataframe), labels))
    if shuffle:
        ds = ds.shuffle(buffer_size=len(dataframe))
    return ds.batch(batch_size)