code: def test_log_data_with_vectors_and_update_ok(api: Argilla):
      dataset = "test_log_data_with_vectors_and_update_ok"
      text = "This is a text"
      delete_ignoring_errors(dataset)
  
      records = [
          TextClassificationRecord(
              id=i,
              inputs=text,
              vectors={"text": [i] * 5},
          )
          for i in range(1, 10)
      ]
  
      api.log(records=records, name=dataset)
      ds = api.load(
          dataset,
          vector=(
              "text",
              [
                  3,
                  3,
                  2,
                  3,
                  3,
              ],  # the first expected records should be the id=3
          ),
          limit=5,
      )
  
      assert len(ds) == 5
      assert ds[0].id == 3
  
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 4 for calling a global function with example usage: test_log_data_with_vectors_and_update_ok(api) without return types