code: def dataset_token_classification(mocked_client: SecuredClient) -> str:
      from datasets import load_dataset
  
      dataset = "gutenberg_spacy_ner"
  
      dataset_ds = load_dataset(
          "argilla/gutenberg_spacy-ner",
          split="train[:3]",
          # This revision does not includes the vectors info, so tests will pass
          revision="fff5f572e4cc3127f196f46ba3f9914c6fd0d763",
      )
  
      dataset_rb = read_datasets(dataset_ds, task="TokenClassification")
      # Set annotations, required for training tests
      for rec in dataset_rb:
          # Strip off "score"
          rec.annotation = [
              prediction[:3] for prediction in rec.prediction
          ]
          rec.annotation_agent = rec.prediction_agent
          rec.prediction = []
          rec.prediction_agent = None
  
      delete_ignoring_errors(dataset)
      log(name=dataset, records=dataset_rb)
  
      return dataset
  
imports: import asyncio
  import contextlib
  import tempfile
  import uuid
  from typing import TYPE_CHECKING, AsyncGenerator, Dict, Generator
  import httpx
  import pytest
  import pytest_asyncio
  from argilla._constants import API_KEY_HEADER_NAME, DEFAULT_API_KEY
  from argilla.client.api import log
  from argilla.client.apis.datasets import TextClassificationSettings
  from argilla.client.client import Argilla, AuthenticatedClient
  from argilla.client.datasets import read_datasets
  from argilla.client.models import Text2TextRecord, TextClassificationRecord
  from argilla.client.sdk.users import api
  from argilla.client.singleton import ArgillaSingleton
  from argilla.datasets import configure_dataset
  from argilla.server import telemetry
  from argilla.server.cli.database.migrate import migrate_db
  from argilla.server.database import get_async_db
  from argilla.server.models import User, UserRole, Workspace
  from argilla.server.settings import settings
  from argilla.utils import telemetry
  from fastapi.testclient import TestClient
  from sqlalchemy import create_engine
  from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
  from tests.factories import AnnotatorFactory, OwnerFactory, UserFactory, WorkspaceFactory
  from tests.integration.utils import delete_ignoring_errors
  from tests.pydantic_v1 import BaseModel
  from ..database import SyncTestSession, TestSession, set_task
  from .helpers import SecuredClient
label_desc: Use image node_id 14 for calling a global function with example usage: dataset_token_classification(mocked_client) and returns: dataset