code: def test_create_docker_worker_config_v3_api_error() -> None:
      class HttpThing:
          def __init__(self, status, reason, data):
              self.status = status
              self.reason = reason
              self.data = data
  
          def getheaders(self):
              return []
  
      def mocked_raise_exception(*args, **kwargs):
          raise ApiException(
              http_resp=HttpThing(
                  403,
                  "Not everything has a reason",
                  '{"code": "ACCOUNT_SUBSCRIPTION_INSUFFICIENT", "error": "Your current plan allows for 1000000 samples but you tried to use 2000000 samples, please contact sales at sales@lightly.ai to upgrade your account."}',
              )
          )
  
      client = ApiWorkflowClient(token="123")
      client._dataset_id = utils.generate_id()
      client._compute_worker_api.create_docker_worker_config_v3 = (
          mocked_raise_exception
      )
      with pytest.raises(
          ValueError,
          match=r'Trying to schedule your job resulted in\n>> ACCOUNT_SUBSCRIPTION_INSUFFICIENT\n>> "Your current plan allows for 1000000 samples but you tried to use 2000000 samples, please contact sales at sales@lightly.ai to upgrade your account."\n>> Please fix the issue mentioned above and see our docs https://docs.lightly.ai/docs/all-configuration-options for more help.',
      ):
          r = client.create_compute_worker_config(
              selection_config={
                  "n_samples": 2000000,
                  "strategies": [
                      {
                          "input": {"type": "EMBEDDINGS"},
                          "strategy": {"type": "DIVERSITY"},
                      }
                  ],
              },
          )
  
imports: import json
  import random
  from typing import Any, List
  from unittest import mock
  from unittest.mock import MagicMock
  import pytest
  from pydantic import ValidationError
  from pytest_mock import MockerFixture
  from lightly.api import ApiWorkflowClient, api_workflow_compute_worker
  from lightly.api.api_workflow_compute_worker import STATE_SCHEDULED_ID_NOT_FOUND, ComputeWorkerRunInfo, InvalidConfigurationError, _config_to_camel_case, _snake_to_camel_case, _validate_config
  from lightly.openapi_generated.swagger_client.api import DockerApi
  from lightly.openapi_generated.swagger_client.api_client import ApiClient
  from lightly.openapi_generated.swagger_client.models import DockerRunData, DockerRunScheduledData, DockerRunScheduledPriority, DockerRunScheduledState, DockerRunState, DockerWorkerConfigV3, DockerWorkerConfigV3Docker, DockerWorkerConfigV3DockerCorruptnessCheck, DockerWorkerConfigV3Lightly, DockerWorkerConfigV3LightlyCollate, DockerWorkerConfigV3LightlyLoader, DockerWorkerState, DockerWorkerType, SelectionConfigV3, SelectionConfigV3Entry, SelectionConfigV3EntryInput, SelectionConfigV3EntryStrategy, SelectionInputPredictionsName, SelectionInputType, SelectionStrategyThresholdOperation, SelectionStrategyTypeV3, TagData
  from lightly.openapi_generated.swagger_client.rest import ApiException
  from tests.api_workflow import utils
  from tests.api_workflow.mocked_api_workflow_client import MockedApiWorkflowSetup
label_desc: Use image node_id 10 for calling a global function with example usage: test_create_docker_worker_config_v3_api_error() and returns: list