@beam.ptransform_fn
@beam.typehints.with_input_types(beam.Pipeline)
@beam.typehints.with_output_types(beam.pvalue.PDone)
def WriteEvalConfig(pipeline: beam.Pipeline, eval_config: config.EvalConfig, output_path: Text, data_location: Optional[Text]='', file_format: Optional[Text]='', model_locations: Optional[Dict[(Text, Text)]]=None):
    'Writes EvalConfig to file.\n\n  Args:\n    pipeline: Beam pipeline.\n    eval_config: EvalConfig.\n    output_path: Output path.\n    data_location: Optional location for data used with config.\n    file_format: Optional format for data used with config.\n    model_locations: Optional location(s) for model(s) used with config.\n\n  Returns:\n    beam.pvalue.PDone.\n  '
    return ((pipeline | ('CreateEvalConfig' >> beam.Create([_serialize_eval_run(eval_config, data_location, file_format, model_locations)]))) | ('WriteEvalConfig' >> beam.io.WriteToText(os.path.join(output_path, _EVAL_CONFIG_FILE), shard_name_template='')))
Writes EvalConfig to file.

Args:
  pipeline: Beam pipeline.
  eval_config: EvalConfig.
  output_path: Output path.
  data_location: Optional location for data used with config.
  file_format: Optional format for data used with config.
  model_locations: Optional location(s) for model(s) used with config.

Returns:
  beam.pvalue.PDone.
@beam.ptransform_fn
@beam.typehints.with_input_types(beam.Pipeline)
@beam.typehints.with_output_types(beam.pvalue.PDone)
def WriteEvalConfig(pipeline: beam.Pipeline, eval_config: config.EvalConfig, output_path: Text, data_location: Optional[Text]=, file_format: Optional[Text]=, model_locations: Optional[Dict[(Text, Text)]]=None):
    'Writes EvalConfig to file.\n\n  Args:\n    pipeline: Beam pipeline.\n    eval_config: EvalConfig.\n    output_path: Output path.\n    data_location: Optional location for data used with config.\n    file_format: Optional format for data used with config.\n    model_locations: Optional location(s) for model(s) used with config.\n\n  Returns:\n    beam.pvalue.PDone.\n  '
    return ((pipeline | ('CreateEvalConfig' >> beam.Create([_serialize_eval_run(eval_config, data_location, file_format, model_locations)]))) | ('WriteEvalConfig' >> beam.io.WriteToText(os.path.join(output_path, _EVAL_CONFIG_FILE), shard_name_template=)))