A model registry lists versions as {"model": str, "version": int, "stage": str} with stages such as
"staging", "production" or "archived". For each model, return the highest version in each stage except
"archived": {"model": {"stage": version}}.
Implement latest_by_stage. Input: versions: list[dict]. Returns: dict[str, dict[str, int]].
def latest_by_stage(versions: list[dict]) -> dict:
return {}
Run executes the public tests. Submit grades against public and hidden tests.
A model registry lists versions as {"model": str, "version": int, "stage": str} with stages such as
"staging", "production" or "archived". For each model, return the highest version in each stage except
"archived": {"model": {"stage": version}}.
Implement latest_by_stage. Input: versions: list[dict]. Returns: dict[str, dict[str, int]].
def latest_by_stage(versions: list[dict]) -> dict:
return {}
Run executes the public tests. Submit grades against public and hidden tests.