def test_increment_error_count_new_invocation(empty_state: State):
  """Test incrementing error count for a new invocation ID."""
  ctx = CodeExecutorContext(empty_state)
  ctx.increment_error_count("invocationNew")
  assert empty_state["_code_executor_error_counts"]["invocationNew"] == 1
Test incrementing error count for a new invocation ID.
tests/unittests/code_executors/test_code_executor_context.py