code: def get_records(
      client: httpx.Client,
      id: UUID,
      include: Union[None, List[str]] = None,
      offset: int = 0,
      limit: int = 50,
      response_status: Optional[
          List[FeedbackResponseStatusFilter]
      ] = None,
      metadata_filters: Optional[List[str]] = None,
      sort_by: Optional[List[str]] = None,
  ) -> Response[
      Union[FeedbackRecordsModel, ErrorMessage, HTTPValidationError]
  ]:
      """Sends a GET request to `/api/v1/datasets/{id}/records` endpoint to retrieve a
      list of `FeedbackTask` records.
  
      Args:
          client: the authenticated Argilla client to be used to send the request to the API.
          id: the id of the dataset to retrieve the records from.
          include: the fields to be included in the response.
               Can either be `responses`, `suggestions`, `vectors:all` or `vectors:vector_name_1,vector_name_2,...`
          offset: the offset to be used in the pagination. Defaults to 0.
          limit: the limit to be used in the pagination. Defaults to 50.
          response_status: the status of the responses to be retrieved. Can either be
              `draft`, `missing`, `discarded`, or `submitted`. Defaults to None.
          metadata_filters: the metadata filters to be applied to the records. Defaults to None.
          sort_by: the fields to be used to sort the records. Defaults to None.
  
      Returns:
          A `Response` object containing a `parsed` attribute with the parsed response if the
          request was successful, which is an instance of `FeedbackRecordsModel`.
      """
      url = f"/api/v1/datasets/{id}/records"
      params = {"offset": offset, "limit": limit}
  
      if include:
          params["include"] = include
  
      if response_status:
          params["response_status"] = response_status
  
      if metadata_filters:
          params["metadata"] = metadata_filters
  
      if sort_by:
          params["sort_by"] = sort_by
  
      response = client.get(url=url, params=params)
  
      if response.status_code == 200:
          response_obj = Response.from_httpx_response(response)
          response_obj.parsed = FeedbackRecordsModel(**response.json())
          return response_obj
      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 6 for calling a global function with example usage: get_records(client, id, include, offset, limit, response_status, metadata_filters, sort_by) and returns: handle_response_error, response_obj