def test_get_error_count_no_error_key(empty_state: State):
  """Test getting error count when the error key itself doesn't exist."""
  ctx = CodeExecutorContext(empty_state)
  assert ctx.get_error_count("any_invocation") == 0
Test getting error count when the error key itself doesn't exist.
tests/unittests/code_executors/test_code_executor_context.py