"""The state reset at the start of a trial. **Teams may edit this file.**

The decode loop calls :func:`reset_decoder` once per trial, before the first
window (``window_index == 0``), and passes the returned model to
:func:`decode_single_window <challenge.hook.decode_single_window>` for every
window of that trial.

The shipped decoder keeps no state across trials; the shipped body returns
``model`` unchanged. A decoder that keeps state across the windows of a
trial returns ``model`` with that state back at its trained initial values.
"""

from __future__ import annotations

from typing import Any, Dict


def reset_decoder(model: Dict[str, Any]) -> Dict[str, Any]:
    """Return ``model`` with any cross-trial state reset.

    The shipped body returns ``model`` unchanged.
    """
    return model
