Sliced statistics are flattened into a single unsliced stats input prior to
validation. If multiple statistics are provided, validation is performed on
corresponding slices. DatasetConstraints, if present, are applied to the
overall slice.
Args
statistics
See validate_statistics.
schema
See validate_statistics.
environment
See validate_statistics.
previous_statistics
See validate_statistics.
serving_statistics
See validate_statistics.
Returns
An Anomalies protocol buffer.
Raises
TypeError
If any of the input arguments is not of the expected type.