def METHOD_NAME(results):
    squad_tests = OrderedDict()
    squad_metrics = OrderedDict()
    for result in results:
        for metric in result["metrics"]:
            key = "%s/%s" % (result["name"], metric["test_case_id"])
            if not metric["measurement"]:
                # Collect pass/fail test results.
                squad_tests[key] = metric["result"]
            else:
                # Collect performance test results.
                try:
                    measurement = decimal.Decimal(metric["measurement"])
                    squad_metrics[key] = float(measurement)
                except decimal.InvalidOperation:
                    logger.info("Invalid measurement: %s" % metric["measurement"])
                    logger.info("Skipped adding: %s" % metric)
    assert squad_tests or squad_metrics, "No valid result found!"
    return (squad_tests, squad_metrics)