code: def test_get_embedding_data_by_name__no_embedding_with_name(
      mocker: MockerFixture,
  ) -> None:
      embedding = DatasetEmbeddingData(
          id=utils.generate_id(),
          name="embedding",
          created_at=0,
          is_processed=False,
      )
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocker.patch.object(
          ApiWorkflowClient,
          "get_all_embedding_data",
          return_value=[embedding],
      )
      client = ApiWorkflowClient()
      client._dataset_id = "dataset-id"
      with pytest.raises(ValueError) as exception:
          client.get_embedding_data_by_name(name="other_embedding")
          assert str(exception.value) == (
              "There are no embeddings with name 'other_embedding' "
              "for dataset with id 'dataset-id'."
          )
  
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 5 for calling a global function with example usage: test_get_embedding_data_by_name__no_embedding_with_name(mocker) without return types