code: def test_download_embeddings_csv__no_default_embedding(
      mocker: MockerFixture,
  ) -> None:
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocked_get_all_embedding_data = mocker.patch.object(
          ApiWorkflowClient, "get_all_embedding_data", return_value=[]
      )
      mocker.patch.object(
          api_workflow_download_dataset,
          "_get_latest_default_embedding_data",
          return_value=None,
      )
      client = ApiWorkflowClient()
      client._dataset_id = "dataset-id"
      with pytest.raises(RuntimeError) as exception:
          client.download_embeddings_csv(output_path="embeddings.csv")
      assert (
          str(exception.value)
          == "Could not find embeddings for dataset with id 'dataset-id'."
      )
      mocked_get_all_embedding_data.assert_called_once()
  
file_path: lightly/tests/api_workflow/test_api_workflow_download_dataset.py
imports: import pytest
  from pytest_mock import MockerFixture
  from lightly.api import ApiWorkflowClient, api_workflow_download_dataset
  from lightly.openapi_generated.swagger_client.models import DatasetData, DatasetEmbeddingData, DatasetType, ImageType, TagData
  from tests.api_workflow import utils
label_desc: Use image node_id 8 for calling a global function with example usage: test_download_embeddings_csv__no_default_embedding(mocker) without return types