code: def test_set_dataset_id__warning_not_shared(
      mocker: MockerFixture,
  ) -> None:
      datasets = _get_datasets(2)
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocker.patch.object(
          ApiWorkflowClient,
          "get_datasets_by_name",
          return_value=datasets,
      )
      mocked_warn = mocker.patch("warnings.warn")
      client = ApiWorkflowClient()
  
      dataset_name = datasets[0].name
      dataset_id = datasets[0].id
      client.set_dataset_id_by_name(dataset_name, shared=False)
      assert client.dataset_id == dataset_id
      mocked_warn.assert_called_once_with(
          f"Found 2 datasets with the name '{dataset_name}'. Their "
          f"ids are {[dataset.id for dataset in datasets]}. "
          f"The dataset_id of the client was set to '{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 16 for calling a global function with example usage: test_set_dataset_id__warning_not_shared(mocker) without return types