def reset_fn(**kwargs):
  """A reset_fn for SV2P.

  Args:
    **kwargs: a dictionary of inputs, including previous state.

  Returns:
    a new dictionary with posteriors removed from the state.
  """
  return kwargs["state"]