code: def update_dataset_labeling_rule(
      client: AuthenticatedClient, name: str, rule: LabelingRule
  ) -> Response[Union[HTTPValidationError, ErrorMessage]]:
      url = "{}/api/datasets/TextClassification/{name}/labeling/rules/{query}".format(
          client.base_url, name=name, query=rule.query
      )
  
      response = httpx.patch(
          url,
          json={"labels": rule.labels},
          headers=client.get_headers(),
          cookies=client.get_cookies(),
          timeout=client.get_timeout(),
      )
  
      return build_typed_response(response, LabelingRule)
  
file_path: argilla/src/argilla/client/sdk/text_classification/api.py
imports: from typing import List, Optional, Union
  import httpx
  from argilla.client.sdk._helpers import build_typed_response
  from argilla.client.sdk.client import AuthenticatedClient
  from argilla.client.sdk.commons.api import build_list_response
  from argilla.client.sdk.commons.models import ErrorMessage, HTTPValidationError, Response
  from argilla.client.sdk.text_classification.models import LabelingRule, LabelingRuleMetricsSummary, TextClassificationQuery, TextClassificationRecord
label_desc: Use image node_id 2 for calling a global function with example usage: update_dataset_labeling_rule(client, name, rule) and returns: build_typed_response