code: def test_settings_workflow(
      argilla_user: "User",
      settings_: "LabelsSchemaSettings",
      wrong_settings: "LabelsSchemaSettings",
  ):
      dataset = "test-dataset"
  
      init(
          api_key=argilla_user.api_key, workspace=argilla_user.username
      )
      workspace = get_workspace()
  
      delete_ignoring_errors(dataset)
      configure_dataset(
          dataset, settings=settings_, workspace=workspace
      )
  
      current_api = singleton.active_api()
      datasets_api = current_api.datasets
  
      found_settings = datasets_api.load_settings(dataset)
      assert {label for label in found_settings.label_schema} == {
          str(label) for label in settings_.label_schema
      }
  
      settings_.label_schema = ["LALALA"]
      configure_dataset(dataset, settings_, workspace=workspace)
  
      found_settings = datasets_api.load_settings(dataset)
      assert found_settings == settings_
  
      with pytest.raises(ValueError, match="Task type mismatch"):
          configure_dataset(
              dataset, wrong_settings, workspace=workspace
          )
  
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 1 for calling a global function with example usage: test_settings_workflow(argilla_user, settings_, wrong_settings) without return types