code: def test_get_compute_worker_state_and_message_docker_state() -> None:
      message = "SOME_MESSAGE"
      docker_run = DockerRunData(
          id=utils.generate_id(),
          user_id="user-id",
          state=DockerRunState.GENERATING_REPORT,
          docker_version="",
          created_at=0,
          last_modified_at=0,
          message=message,
      )
      mocked_api_client = MagicMock(
          dataset_id=utils.generate_id(),
          _compute_worker_api=MagicMock(
              get_docker_run_by_scheduled_id=lambda scheduled_id: docker_run
          ),
      )
  
      run_info = ApiWorkflowClient.get_compute_worker_run_info(
          self=mocked_api_client, scheduled_run_id=utils.generate_id()
      )
      assert run_info.state == DockerRunState.GENERATING_REPORT
      assert run_info.message == message
      assert run_info.in_end_state() == False
  
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 14 for calling a global function with example usage: test_get_compute_worker_state_and_message_docker_state() without return types