code: def test_set_dataset_id__error(mocker: MockerFixture):
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocker.patch.object(
          ApiWorkflowClient, "get_datasets_by_name", return_value=[]
      )
      client = ApiWorkflowClient()
      with pytest.raises(ValueError) as exception:
          client.set_dataset_id_by_name("dataset_1")
      assert str(exception.value) == (
          "A dataset with the name 'dataset_1' does not exist on the "
          "Lightly Platform. Please create it first."
      )
  
imports: from typing import List
  import pytest
  from pytest_mock import MockerFixture
  from lightly.api import ApiWorkflowClient, api_workflow_datasets
  from lightly.openapi_generated.swagger_client.api import DatasetsApi
  from lightly.openapi_generated.swagger_client.models import Creator, DatasetCreateRequest, DatasetData, DatasetType
  from lightly.openapi_generated.swagger_client.rest import ApiException
  from tests.api_workflow import utils
  from tests.api_workflow.mocked_api_workflow_client import MockedApiWorkflowSetup
label_desc: Use image node_id 15 for calling a global function with example usage: test_set_dataset_id__error(mocker) without return types