def METHOD_NAME(
    report_metrics,
    metrics,
    display_labels=None,
    nonzero_only=False,
    delim="\t",
    label_matches=None,
):
    """Text report on a list of Prometheus metrics."""
    report_output = []
    if report_metrics is None:
        report_metrics = [None]
    for metric_name in report_metrics:
        for sample in _get_samples_from_metrics(
            metrics, metric_name, label_matches, nonzero_only
        ):
            labels = sample.labels
            value = sample.value
            sorted_labels = [
                (key, val)
                for key, val in sorted(labels.items())
                if not display_labels or key in display_labels
            ]
            value = decode_value(metric_name, value)
            report_output.append(
                delim.join((metric_name, str(sorted_labels), str(value)))
            )
        report_output = "\n".join(report_output)
    return report_output