code: def log_multilabel_dataset(mocked_client: SecuredClient) -> str:
      dataset_name = "test_dataset_for_multilabel_applier"
      mocked_client.delete(f"/api/datasets/{dataset_name}")
      assert (
          mocked_client.post(
              "/api/datasets",
              json={
                  "name": dataset_name,
                  "task": TaskType.text_classification.value,
              },
          ).status_code
          == 200
      )
      records = [
          CreationTextClassificationRecord.parse_obj(
              {
                  "inputs": {"text": text},
                  "annotation": {
                      "labels": [
                          {"class": label, "score": 1}
                          for label in labels
                      ],
                      "agent": "test",
                  }
                  if labels is not None
                  else None,
                  "multi_label": True,
                  "id": idx,
              }
          )
          for text, labels, idx in zip(
              ["negative", "negative and positive", "None"],
              [["negative"], ["negative", "positive"], None],
              [1, 2, 3],
          )
      ]
      mocked_client.post(
          f"/api/datasets/{dataset_name}/TextClassification:bulk",
          json=TextClassificationBulkData(
              records=records,
          ).dict(by_alias=True),
      )
  
      return dataset_name
  
imports: import sys
  from typing import Callable, List, Optional, Union
  import numpy
  import pandas
  import pytest
  from argilla.client.models import TextClassificationRecord
  from argilla.client.sdk.text_classification.models import CreationTextClassificationRecord, TextClassificationBulkData
  from argilla.labeling.text_classification import WeakLabels, WeakMultiLabels
  from argilla.labeling.text_classification.rule import Rule
  from argilla.labeling.text_classification.weak_labels import DuplicatedRuleNameError, MissingLabelError, MultiLabelError, NoRecordsFoundError, NoRulesFoundError, WeakLabelsBase
  from argilla.server.commons.models import TaskType
  from pandas.testing import assert_frame_equal
  from tests.integration.helpers import SecuredClient
label_desc: Use image node_id 3 for calling a global function with example usage: log_multilabel_dataset(mocked_client) and returns: dataset_name