code: def test_add_duplicated_rule(
      mocked_client,
      log_dataset,
  ):
      rules = [
          Rule(query="lab", label="DD"),
          Rule(query="lab", label="EF"),
      ]
      add_rules(log_dataset, rules)
      new_rules = load_rules(log_dataset)
      assert len(new_rules) == 1, new_rules
      assert new_rules[0].label == "DD" and new_rules[0].query == "lab"
  
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 7 for calling a global function with example usage: test_add_duplicated_rule(mocked_client, log_dataset) without return types