code: def test_dataset_exists(mocker: MockerFixture) -> None:
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocked_get_dataset = mocker.patch.object(
          ApiWorkflowClient, "get_dataset_by_id"
      )
      dataset_id = "dataset-id"
      client = ApiWorkflowClient()
      assert client.dataset_exists(dataset_id)
      mocked_get_dataset.assert_called_once_with(dataset_id)
  
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 4 for calling a global function with example usage: test_dataset_exists(mocker) without return types