code: def test_download_embeddings_csv(mocker: MockerFixture) -> None:
      embedding_id = utils.generate_id()
  
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mock_get_all_embedding_data = mocker.patch.object(
          api_workflow_download_dataset,
          "_get_latest_default_embedding_data",
          return_value=DatasetEmbeddingData(
              id=embedding_id,
              name="default_20221209_10h45m49s",
              created_at=0,
              is_processed=False,
          ),
      )
      mocker.patch.object(ApiWorkflowClient, "get_all_embedding_data")
      mock_download_embeddings_csv_by_id = mocker.patch.object(
          ApiWorkflowClient,
          "download_embeddings_csv_by_id",
      )
  
      client = ApiWorkflowClient()
      client._dataset_id = "dataset-id"
      client.download_embeddings_csv(output_path="embeddings.csv")
      mock_get_all_embedding_data.assert_called_once()
      mock_download_embeddings_csv_by_id.assert_called_once_with(
          embedding_id=embedding_id,
          output_path="embeddings.csv",
      )
  
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 7 for calling a global function with example usage: test_download_embeddings_csv(mocker) without return types