@beam.ptransform_fn
@beam.typehints.with_input_types(Union[(evaluator.Evaluation, validator.Validation)])
@beam.typehints.with_output_types(beam.pvalue.PDone)
def WriteResults(evaluation_or_validation: Union[(evaluator.Evaluation, validator.Validation)], writers: List[writer.Writer]):
    'Writes Evaluation or Validation results using given writers.\n\n  Args:\n    evaluation_or_validation: Evaluation or Validation output.\n    writers: Writes to use for writing out output.\n\n  Raises:\n    ValueError: If Evaluation or Validation is empty.\n\n  Returns:\n    beam.pvalue.PDone.\n  '
    if (not evaluation_or_validation):
        raise ValueError('Evaluations and Validations cannot be empty')
    for w in writers:
        _ = (evaluation_or_validation | (w.stage_name >> w.ptransform))
    return beam.pvalue.PDone(list(evaluation_or_validation.values())[0].pipeline)
Writes Evaluation or Validation results using given writers.

Args:
  evaluation_or_validation: Evaluation or Validation output.
  writers: Writes to use for writing out output.

Raises:
  ValueError: If Evaluation or Validation is empty.

Returns:
  beam.pvalue.PDone.
@beam.ptransform_fn
@beam.typehints.with_input_types(Union[(evaluator.Evaluation, validator.Validation)])
@beam.typehints.with_output_types(beam.pvalue.PDone)
def WriteResults(evaluation_or_validation: Union[(evaluator.Evaluation, validator.Validation)], writers: List[writer.Writer]):
    'Writes Evaluation or Validation results using given writers.\n\n  Args:\n    evaluation_or_validation: Evaluation or Validation output.\n    writers: Writes to use for writing out output.\n\n  Raises:\n    ValueError: If Evaluation or Validation is empty.\n\n  Returns:\n    beam.pvalue.PDone.\n  '
    if (not evaluation_or_validation):
        raise ValueError('Evaluations and Validations cannot be empty')
    for w in writers:
        _ = (evaluation_or_validation | (w.stage_name >> w.ptransform))
    return beam.pvalue.PDone(list(evaluation_or_validation.values())[0].pipeline)