def METHOD_NAME(cls, v, values):
    if values["status"] != DetectionStatus.production and not v:
        raise ValueError(
            "tests value is needed for production detection: " + values["name"]
        )
    return v