code: def test__get_compute_worker_run_checkpoint_url(
      mocker: MockerFixture,
  ) -> None:
      mocked_client = mocker.MagicMock(spec=ApiWorkflowClient)
      mocked_artifact = DockerRunArtifactData(
          id=utils.generate_id(),
          file_name="report.pdf",
          type=DockerRunArtifactType.REPORT_PDF,
      )
      mocked_client._get_artifact_by_type.return_value = mocked_artifact
      mocked_client._compute_worker_api = mocker.MagicMock(
          spec_set=DockerApi
      )
      mocked_client._compute_worker_api.get_docker_run_artifact_read_url_by_id.return_value = (
          "some_read_url"
      )
  
      run = DockerRunData(
          id=utils.generate_id(),
          user_id="user-id",
          dataset_id=utils.generate_id(),
          docker_version="",
          state=DockerRunState.COMPUTING_METADATA,
          created_at=0,
          last_modified_at=0,
          artifacts=[mocked_artifact],
      )
      read_url = (
          ApiWorkflowClient.get_compute_worker_run_checkpoint_url(
              self=mocked_client, run=run
          )
      )
  
      assert read_url == "some_read_url"
      mocked_client._get_artifact_by_type.assert_called_with(
          artifact_type=DockerRunArtifactType.CHECKPOINT, run=run
      )
      mocked_client._compute_worker_api.get_docker_run_artifact_read_url_by_id.assert_called_with(
          run_id=run.id, artifact_id=mocked_artifact.id
      )
  
file_path: lightly/tests/api_workflow/test_api_workflow_artifacts.py
imports: import pytest
  from pytest_mock import MockerFixture
  from lightly.api import ApiWorkflowClient, ArtifactNotExist
  from lightly.openapi_generated.swagger_client.api import DockerApi
  from lightly.openapi_generated.swagger_client.models import DockerRunArtifactData, DockerRunArtifactType, DockerRunData, DockerRunState
  from tests.api_workflow import utils
label_desc: Use image node_id 5 for calling a global function with example usage: test__get_compute_worker_run_checkpoint_url(mocker) without return types