code: def get_dataset_metrics(
      client: AuthenticatedClient, name: str, task: str
  ) -> Response[
      Union[List[MetricInfo], ErrorMessage, HTTPValidationError]
  ]:
      url = "{}/api/datasets/{task}/{name}/metrics".format(
          client.base_url, name=name, task=task
      )
  
      response = httpx.get(
          url=url,
          headers=client.get_headers(),
          cookies=client.get_cookies(),
          timeout=client.get_timeout(),
      )
  
      return build_list_response(response, item_class=MetricInfo)
  
file_path: argilla/src/argilla/client/sdk/metrics/api.py
imports: from typing import Any, Dict, List, Optional, Union
  import httpx
  from argilla.client.sdk._helpers import build_raw_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.metrics.models import MetricInfo
label_desc: Use image node_id 1 for calling a global function with example usage: get_dataset_metrics(client, name, task) and returns: build_list_response