code: def test_log_with_empty_tokens_list(api: Argilla):
      dataset = "test_log_with_empty_text"
      text = "The text"
  
      delete_ignoring_errors(dataset)
      with pytest.raises(
          Exception,
          match="At least one token should be provided",
      ):
          api.log(
              TokenClassificationRecord(id=0, text=text, tokens=[]),
              name=dataset,
          )
  
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 2 for calling a global function with example usage: test_log_with_empty_tokens_list(api) without return types