code: def test_log_with_bulk_error(argilla_user: "User"):
      dataset = "test_log_with_bulk_error"
  
      init(
          api_key=argilla_user.api_key, workspace=argilla_user.username
      )
  
      delete_ignoring_errors(dataset)
      try:
          log(
              [
                  TextClassificationRecord(
                      id=0,
                      text="This is an special text",
                      metadata={"key": 1},
                  ),
                  TextClassificationRecord(
                      id=1,
                      text="This is an special text",
                      metadata={"key": "wrong-value"},
                  ),
              ],
              name=dataset,
          )
      except BadRequestApiError as error:
          assert (
              error.ctx["code"] == "argilla.api.errors::BulkDataError"
          )
          assert (
              error.ctx["params"]["message"]
              == "Cannot log data in dataset argilla.test_log_with_bulk_error"
          )
          assert error.ctx["params"]["errors"][0]["caused_by"] == {
              "type": "illegal_argument_exception",
              "reason": 'For input string: "wrong-value"',
          }
  
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 11 for calling a global function with example usage: test_log_with_bulk_error(argilla_user) without return types