code: def load_rules(dataset: str) -> List[Rule]:
      """load the rules defined in a given dataset.
  
      Args:
          dataset: Name of the dataset.
  
      Returns:
          A list of rules defined in the given dataset.
      """
      rules = singleton.active_api().fetch_dataset_labeling_rules(
          dataset
      )
      return [
          Rule(
              query=rule.query,
              label=rule.label or rule.labels,
              name=rule.description,
              author=rule.author,
          )
          for rule in rules
      ]
  
imports: from typing import Dict, List, Optional, Union
  import argilla
  from argilla.client import singleton
  from argilla.client.api import load
  from argilla.client.models import TextClassificationRecord
  from argilla.client.sdk.text_classification.models import LabelingRule
label_desc: Use image node_id 4 for calling a global function with example usage: load_rules(dataset) and returns: unknown