code: def test_download_embeddings_csv_by_id(mocker: MockerFixture) -> None:
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocked_download = mocker.patch.object(
          api_workflow_download_dataset.download,
          "download_and_write_file",
      )
      mocked_api = mocker.MagicMock()
      mocked_get_embeddings_csv_read_url_by_id = mocker.MagicMock(
          return_value="read_url"
      )
      mocked_api.get_embeddings_csv_read_url_by_id = (
          mocked_get_embeddings_csv_read_url_by_id
      )
      mocker.patch.object(
          api_workflow_download_dataset,
          "_get_latest_default_embedding_data",
          return_value=None,
      )
      client = ApiWorkflowClient()
      client._dataset_id = "dataset-id"
      client._embeddings_api = mocked_api
  
      client.download_embeddings_csv_by_id(
          embedding_id="embedding_id",
          output_path="embeddings.csv",
      )
      mocked_get_embeddings_csv_read_url_by_id.assert_called_once_with(
          dataset_id="dataset-id",
          embedding_id="embedding_id",
      )
      mocked_download.assert_called_once_with(
          url="read_url",
          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 6 for calling a global function with example usage: test_download_embeddings_csv_by_id(mocker) without return types