code: def update_records(
      client: httpx.Client, id: UUID, records: List[Dict[str, Any]]
  ) -> Response[Union[ErrorMessage, HTTPValidationError]]:
      """Sends a PATCH requests to `/api/v1/datasets/{id}/records` endpoint to update a
      a list of `FeedbackTask` records from a `FeedbackDataset`.
  
      Args:
          client: the authenticated Argilla client to be used to send the request to the API.
          id: the id of the dataset to update the records from.
          records: the list of records to be updated.
  
      Returns:
          A `Response` object with the response itself, and/or the error codes if applicable.
      """
      url = f"/api/v1/datasets/{id}/records"
  
      items = []
      for record in records:
          item = {"id": record["id"]}
          if "metadata" in record:
              item["metadata"] = record["metadata"]
          if "suggestions" in record:
              item["suggestions"] = record["suggestions"]
          if "vectors" in record:
              item["vectors"] = record["vectors"]
  
          items.append(item)
  
      response = client.patch(url=url, json={"items": items})
  
      if response.status_code == 204:
          return Response.from_httpx_response(response)
  
      return handle_response_error(response)
  
imports: import warnings
  from typing import Any, Dict, List, Optional, Union
  from uuid import UUID
  import httpx
  from argilla.client.sdk.commons.errors_handler import handle_response_error
  from argilla.client.sdk.commons.models import ErrorMessage, HTTPValidationError, Response
  from argilla.client.sdk.v1.datasets.models import FeedbackDatasetModel, FeedbackFieldModel, FeedbackListVectorSettingsModel, FeedbackMetadataPropertyModel, FeedbackMetricsModel, FeedbackQuestionModel, FeedbackRecordsModel, FeedbackRecordsSearchModel, FeedbackRecordsSearchVectorQuery, FeedbackResponseStatusFilter, FeedbackVectorSettingsModel
label_desc: Use image node_id 9 for calling a global function with example usage: update_records(client, id, records) and returns: handle_response_error, Response