code: def kendall_tau_dist(x: List[int], y: List[int]) -> float:
      r"""Kendall tau distance.
  
      https://en.wikipedia.org/wiki/Kendall_tau_distance
  
      Args:
          x: Values of the first annotation.
          y: Values of the first annotation.
  
      Returns:
          distance: Kendall tau distance.
  
      Example:
          >>> import itertools
          >>> values = (1, 2, 3)
          >>> for i, a in enumerate(itertools.permutations(values, len(values))):
          ...     for j, b in enumerate(itertools.permutations(values, len(values))):
          ...             if j >= i:
          ...                     print((a, b), kendall_tau_dist(a,b))
          ...
          ((1, 2, 3), (1, 2, 3)) 0.0
          ((1, 2, 3), (1, 3, 2)) 0.3333333333333333
          ((1, 2, 3), (2, 1, 3)) 0.3333333333333333
          ((1, 2, 3), (2, 3, 1)) 0.6666666666666667
          ((1, 2, 3), (3, 1, 2)) 0.6666666666666667
          ((1, 2, 3), (3, 2, 1)) 1.0
          ...
      """
      from scipy.stats import kendalltau
  
      coef, _ = kendalltau(x, y)
      return 0.5 * (1 - coef)
  
file_path: argilla/src/argilla/client/feedback/metrics/agreement_metrics.py
imports: from typing import TYPE_CHECKING, Callable, Dict, List, Optional, Union
  from nltk.metrics.agreement import AnnotationTask
  from nltk.metrics.distance import binary_distance, interval_distance, masi_distance
  from argilla.client.feedback.dataset import FeedbackDataset
  from argilla.client.feedback.metrics.base import AgreementMetricResult, AnnotationTaskMetricBase, MetricBase
  from argilla.client.feedback.schemas import LabelQuestion, MultiLabelQuestion, RankingQuestion, RatingQuestion
  from argilla.client.feedback.schemas.remote.shared import RemoteSchema
label_desc: Use image node_id 2 for calling a global function with example usage: kendall_tau_dist(x, y) and returns: unknown