code: def test_load_rules(mocked_client, log_dataset):
      mocked_client.post(
          f"/api/datasets/TextClassification/{log_dataset}/labeling/rules",
          json={"query": "a query", "label": "LALA"},
      )
  
      rules = load_rules(log_dataset)
      assert len(rules) == 1
      assert rules[0].query == "a query"
      assert rules[0].label == "LALA"
  
imports: import httpx
  import pytest
  from argilla import User
  from argilla.client.api import copy, delete, load
  from argilla.client.models import TextClassificationRecord
  from argilla.client.sdk.datasets.models import TaskType
  from argilla.client.sdk.text_classification.models import CreationTextClassificationRecord, TextClassificationBulkData
  from argilla.labeling.text_classification import Rule, add_rules, delete_rules, load_rules, update_rules
  from argilla.labeling.text_classification.rule import RuleNotAppliedError
  from argilla.server.errors import EntityNotFoundError
  from tests.integration.helpers import SecuredClient
  from tests.integration.utils import delete_ignoring_errors
label_desc: Use image node_id 9 for calling a global function with example usage: test_load_rules(mocked_client, log_dataset) without return types