code: def test_resource_leaking_with_several_init(argilla_user: User):
      dataset = "test_resource_leaking_with_several_init"
      argilla.client.singleton.init(api_key=argilla_user.api_key)
      delete_ignoring_errors(dataset)
  
      # TODO: review performance in Windows. See https://github.com/recognai/argilla/pull/1702
      for i in range(0, 20):
          argilla.client.singleton.init(api_key=argilla_user.api_key)
  
      for i in range(0, 10):
          argilla.client.singleton.init(api_key=argilla_user.api_key)
          api.log(
              TextClassificationRecord(text="The text"),
              name=dataset,
              verbose=False,
          )
  
      assert len(api.load(dataset)) == 10
  
file_path: argilla/tests/integration/client/test_init.py
imports: import argilla.client.singleton
  import pytest
  from argilla.client import api
  from argilla.client.models import TextClassificationRecord
  from argilla.client.singleton import active_api, active_client
  from argilla.server.models import User
  from tests.factories import UserFactory, WorkspaceFactory
  from tests.integration.utils import delete_ignoring_errors
label_desc: Use image node_id 1 for calling a global function with example usage: test_resource_leaking_with_several_init(argilla_user) without return types