def test_reset_error_count_no_error_key(empty_state: State):
  """Test resetting when the error key itself doesn't exist."""
  ctx = CodeExecutorContext(empty_state)
  ctx.reset_error_count("any_invocation")  # Should not raise
  assert "_code_executor_error_counts" not in empty_state
Test resetting when the error key itself doesn't exist.
tests/unittests/code_executors/test_code_executor_context.py