code: def delete_dataset(
      client: AuthenticatedClient, name: str
  ) -> Response:
      url = f"{client.base_url}/api/datasets/{name}"
  
      response = httpx.delete(
          url=url,
          headers=client.get_headers(),
          cookies=client.get_cookies(),
          timeout=client.get_timeout(),
      )
      # If everything was ok, we must clear local cache data
      if 200 <= response.status_code < 400:
          get_dataset.cache_clear()
          return Response(
              status_code=response.status_code,
              content=response.content,
              headers=response.headers,
              parsed=response.json(),
          )
      handle_response_error(response, dataset=name)
  
file_path: argilla/src/argilla/client/sdk/datasets/api.py
imports: from functools import lru_cache
  from typing import List, Optional, Union
  import httpx
  from argilla._constants import WORKSPACE_HEADER_NAME
  from argilla.client.sdk.client import AuthenticatedClient
  from argilla.client.sdk.commons.errors_handler import handle_response_error
  from argilla.client.sdk.commons.models import Response
  from argilla.client.sdk.datasets.models import CopyDatasetRequest, Dataset
label_desc: Use image node_id 4 for calling a global function with example usage: delete_dataset(client, name) and returns: Response