def state_from_scratch(args: tuple, kwargs: dict) -> dict:
    """Create pipeline state from (args, kwargs)."""
    state = {i: v for i, v in enumerate(args)}
    state.update(kwargs)
    return state