def get_metric_by_source_uuid(report, source_uuid: str):
    """Return the metric that has a source with the specified uuid."""
    return [metric for subject in report["subjects"].values() for metric in subject["metrics"].values()
            if source_uuid in metric["sources"]][0]