def load_validation_result(validations_file: Text) -> Optional[ValidationResult]:
    'Read and deserialize the ValidationResult.'
    validation_records = []
    for record in tf.compat.v1.python_io.tf_record_iterator(validations_file):
        validation_records.append(ValidationResult.FromString(record))
    if validation_records:
        assert (len(validation_records) == 1)
        return validation_records[0]
Read and deserialize the ValidationResult.
def load_validation_result(validations_file: Text) -> Optional[ValidationResult]:
    
    validation_records = []
    for record in tf.compat.v1.python_io.tf_record_iterator(validations_file):
        validation_records.append(ValidationResult.FromString(record))
    if validation_records:
        assert (len(validation_records) == 1)
        return validation_records[0]