def METHOD_NAME(cls, values):
    if values["status"] == DetectionStatus.production:
        if "tests" not in values:
            raise ValueError("Missing test file for detection: " + values["name"])
    return values