import pickle


def undump_keras_history(data):
    """Deserialize a Keras/TensorFlow training history with pickle.

    Parameters:
    data (bytes): Keras/TensorFlow training history  (serialized)

    Returns:
    dict: Keras/TensorFlow training history

   """

    byte = data.tobytes()
    history = pickle.loads(byte)

    return history