verify_data function

Verify the integrity of the data object