code: def test_upload_scores(mocker: MockerFixture) -> None:
      dataset_id = utils.generate_id()
      tags = _get_tags(dataset_id=dataset_id, tag_name="initial-tag")
      tag_id = tags[0].id
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocker.patch.object(
          ApiWorkflowClient,
          "get_all_tags",
          return_value=tags,
      )
      mocker.patch.object(
          api_workflow_selection,
          "_parse_active_learning_scores",
          return_value=[1],
      )
      mocked_api = mocker.MagicMock()
      mocked_create_score = (
          mocked_api.create_or_update_active_learning_score_by_tag_id
      )
  
      client = ApiWorkflowClient()
      client._scores_api = mocked_api
      client._dataset_id = dataset_id
  
      mocked_create_score.reset_mock()
      client.upload_scores(
          al_scores={"score_type": [1, 2, 3]}, query_tag_id=tag_id
      )
      mocked_create_score.assert_called_once()
      kwargs = mocked_create_score.call_args[1]
      assert kwargs.get("tag_id") == tag_id
  
file_path: lightly/tests/api_workflow/test_api_workflow_selection.py
imports: from typing import List
  import pytest
  from pytest_mock import MockerFixture
  from lightly.active_learning.config.selection_config import SelectionConfig
  from lightly.api import ApiWorkflowClient, api_workflow_selection
  from lightly.openapi_generated.swagger_client.models import JobResultType, JobState, JobStatusData, JobStatusDataResult, SamplingCreateRequest, SamplingMethod, TagData
  from tests.api_workflow import utils
label_desc: Use image node_id 8 for calling a global function with example usage: test_upload_scores(mocker) without return types