code: def test_get_compute_worker_run_tags__multiple_tags(
      mocker: MockerFixture,
  ) -> None:
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      run_id = utils.generate_id()
      dataset_id = utils.generate_id()
      client = ApiWorkflowClient(token="123", dataset_id=dataset_id)
      client._dataset_id = dataset_id
      mock_compute_worker_api = mocker.create_autospec(
          DockerApi, spec_set=True
      ).return_value
  
      tag_ids = [utils.generate_id() for _ in range(3)]
      tag_0 = TagData(
          id=tag_ids[0],
          dataset_id=dataset_id,
          prev_tag_id=None,
          bit_mask_data="0x1",
          name="tag-0",
          tot_size=0,
          created_at=0,
          changes=None,
          run_id=run_id,
      )
      tag_1 = TagData(
          id=tag_ids[1],
          dataset_id=dataset_id,
          prev_tag_id=tag_ids[0],
          bit_mask_data="0x1",
          name="tag-1",
          tot_size=0,
          created_at=1,
          changes=None,
          run_id=run_id,
      )
      # tag from a different dataset
      tag_2 = TagData(
          id=tag_ids[2],
          dataset_id=utils.generate_id(),
          prev_tag_id=None,
          bit_mask_data="0x1",
          name="tag-2",
          tot_size=0,
          created_at=2,
          changes=None,
          run_id=run_id,
      )
      # tags are returned ordered by decreasing creation date
      mock_compute_worker_api.get_docker_run_tags.return_value = [
          tag_2,
          tag_1,
          tag_0,
      ]
      client._compute_worker_api = mock_compute_worker_api
      tags = client.get_compute_worker_run_tags(run_id="run-0")
      assert len(tags) == 2
      assert tags[0] == tag_1
      assert tags[1] == tag_0
      mock_compute_worker_api.get_docker_run_tags.assert_called_once_with(
          run_id="run-0"
      )
  
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 20 for calling a global function with example usage: test_get_compute_worker_run_tags__multiple_tags(mocker) without return types