def default_writers(output_path: Optional[Text], eval_shared_model: Optional[Union[(types.EvalSharedModel, Dict[(Text, types.EvalSharedModel)])]]=None) -> List[writer.Writer]:
    'Returns the default writers for use in WriteResults.\n\n  Args:\n    output_path: Output path.\n    eval_shared_model: Optional shared model (single-model evaluation) or dict\n      of shared models keyed by model name (multi-model evaluation). Only\n      required if legacy add_metrics_callbacks are used.\n  '
    add_metric_callbacks = []
    if (eval_shared_model and (not isinstance(eval_shared_model, dict))):
        add_metric_callbacks = eval_shared_model.add_metrics_callbacks
    output_paths = {constants.METRICS_KEY: os.path.join(output_path, constants.METRICS_KEY), constants.PLOTS_KEY: os.path.join(output_path, constants.PLOTS_KEY), constants.VALIDATIONS_KEY: os.path.join(output_path, constants.VALIDATIONS_KEY)}
    return [metrics_plots_and_validations_writer.MetricsPlotsAndValidationsWriter(output_paths=output_paths, add_metrics_callbacks=add_metric_callbacks)]
Returns the default writers for use in WriteResults.

Args:
  output_path: Output path.
  eval_shared_model: Optional shared model (single-model evaluation) or dict
    of shared models keyed by model name (multi-model evaluation). Only
    required if legacy add_metrics_callbacks are used.
def default_writers(output_path: Optional[Text], eval_shared_model: Optional[Union[(types.EvalSharedModel, Dict[(Text, types.EvalSharedModel)])]]=None) -> List[writer.Writer]:
    'Returns the default writers for use in WriteResults.\n\n  Args:\n    output_path: Output path.\n    eval_shared_model: Optional shared model (single-model evaluation) or dict\n      of shared models keyed by model name (multi-model evaluation). Only\n      required if legacy add_metrics_callbacks are used.\n  '
    add_metric_callbacks = []
    if (eval_shared_model and (not isinstance(eval_shared_model, dict))):
        add_metric_callbacks = eval_shared_model.add_metrics_callbacks
    output_paths = {constants.METRICS_KEY: os.path.join(output_path, constants.METRICS_KEY), constants.PLOTS_KEY: os.path.join(output_path, constants.PLOTS_KEY), constants.VALIDATIONS_KEY: os.path.join(output_path, constants.VALIDATIONS_KEY)}
    return [metrics_plots_and_validations_writer.MetricsPlotsAndValidationsWriter(output_paths=output_paths, add_metrics_callbacks=add_metric_callbacks)]