code: def test_configure_dataset_settings_twice(
      owner: "User",
      argilla_user: "User",
      settings: Union[
          TextClassificationSettings, TokenClassificationSettings
      ],
      workspace: Optional[str],
  ) -> None:
      if not workspace:
          workspace_name = argilla_user.username
      else:
          init(api_key=owner.api_key)
          workspace = Workspace.create(name=workspace)
          workspace.add_user(argilla_user.id)
          workspace_name = workspace.name
  
      init(
          api_key=argilla_user.api_key, workspace=argilla_user.username
      )
      dataset_name = f"test-dataset-{uuid4()}"
      # This will create the dataset
      configure_dataset_settings(
          dataset_name, settings=settings, workspace=workspace_name
      )
      # This will update the dataset and what describes the issue https://github.com/argilla-io/argilla/issues/3505
      configure_dataset_settings(
          dataset_name, settings=settings, workspace=workspace_name
      )
  
      found_settings = load_dataset_settings(
          dataset_name, workspace_name
      )
      assert {label for label in found_settings.label_schema} == {
          str(label) for label in settings.label_schema
      }
  
file_path: argilla/tests/integration/test_datasets_settings.py
imports: from typing import TYPE_CHECKING, Optional, Union
  from uuid import uuid4
  import pytest
  from argilla import Workspace
  from argilla.client import singleton
  from argilla.client.api import get_workspace
  from argilla.client.client import Argilla
  from argilla.client.sdk.commons.errors import ForbiddenApiError
  from argilla.client.singleton import init
  from argilla.datasets import TextClassificationSettings, TokenClassificationSettings, configure_dataset, configure_dataset_settings, load_dataset_settings
  from argilla.server.contexts import accounts
  from argilla.server.security.model import WorkspaceUserCreate
  from tests.integration.utils import delete_ignoring_errors
label_desc: Use image node_id 2 for calling a global function with example usage: test_configure_dataset_settings_twice(owner, argilla_user, settings, workspace) without return types