code: def test_delete_and_create_for_different_task(api: Argilla):
      dataset = "test_delete_and_create_for_different_task"
      text = "This is a text"
  
      delete_ignoring_errors(dataset)
      api.log(TextClassificationRecord(id=0, inputs=text), name=dataset)
      api.load(dataset)
  
      delete_ignoring_errors(dataset)
      api.log(
          TokenClassificationRecord(
              id=0, text=text, tokens=text.split(" ")
          ),
          name=dataset,
      )
      api.load(dataset)
  
imports: from typing import TYPE_CHECKING
  import argilla
  import pytest
  from argilla.client.api import load, log
  from argilla.client.client import Argilla
  from argilla.client.datasets import read_datasets
  from argilla.client.models import TextClassificationRecord, TokenClassificationRecord
  from argilla.client.sdk.commons.errors import BadRequestApiError, GenericApiError, ValidationApiError
  from argilla.client.singleton import init
  from argilla.server.settings import settings
  from tests.factories import WorkspaceFactory
  from tests.integration.utils import delete_ignoring_errors
label_desc: Use image node_id 2 for calling a global function with example usage: test_delete_and_create_for_different_task(api) without return types