code: def test_logging_data_with_concurrency(api: Argilla):
      from datasets import load_dataset
  
      dataset = "test_logging_data_with_concurrency"
      dataset_ds = load_dataset(
          "rubrix/gutenberg_spacy-ner", split="train"
      )
  
      dataset_rb = argilla.read_datasets(
          dataset_ds, task="TokenClassification"
      )
  
      delete_ignoring_errors(dataset)
      api.log(
          name=dataset,
          records=dataset_rb,
          batch_size=int(len(dataset_ds) / 4),
          num_threads=4,
      )
  
      ds = api.load(name=dataset)
      assert len(dataset_ds) == len(ds)
  
file_path: argilla/tests/integration/test_log_for_token_classification.py
imports: import argilla
  import pytest
  from argilla import TokenClassificationRecord
  from argilla.client import api
  from argilla.client.client import Argilla
  from argilla.client.sdk.commons.errors import NotFoundApiError
  from argilla.client.singleton import ArgillaSingleton
  from argilla.metrics import __all__
  from argilla.metrics import entity_consistency
  from tests.integration.utils import delete_ignoring_errors
label_desc: Use image node_id 8 for calling a global function with example usage: test_logging_data_with_concurrency(api) without return types