code: def test_search_records_with_record_id(
      mock_httpx_client: httpx.Client,
  ):
      json_response = {
          "items": [
              {
                  "record": {
                      "id": str(uuid4()),
                      "fields": {},
                      "metadata": None,
                      "external_id": None,
                      "responses": [],
                      "suggestions": [],
                      "inserted_at": datetime.utcnow().isoformat(),
                      "updated_at": datetime.utcnow().isoformat(),
                  },
                  "query_score": 1.0,
              },
              {
                  "record": {
                      "id": str(uuid4()),
                      "fields": {},
                      "metadata": None,
                      "external_id": None,
                      "responses": [],
                      "suggestions": [],
                      "inserted_at": datetime.utcnow().isoformat(),
                      "updated_at": datetime.utcnow().isoformat(),
                  },
                  "query_score": 0.5,
              },
          ],
          "total": 2,
      }
  
      mock_httpx_client.post.return_value = httpx.Response(
          status_code=200, json=json_response
      )
  
      dataset_id = uuid4()
      expected_record_id = uuid4()
  
      vector_query = FeedbackRecordsSearchVectorQuery(
          name="vector_name", record_id=expected_record_id
      )
  
      response = api.search_records(
          client=mock_httpx_client,
          id=dataset_id,
          vector_query=vector_query,
      )
  
      assert response.status_code == 200
      assert response.parsed == FeedbackRecordsSearchModel(
          items=[
              FeedbackRecordSearchModel(
                  record=FeedbackItemModel(
                      id=UUID(
                          json_response["items"][0]["record"]["id"]
                      ),
                      fields={},
                      metadata=None,
                      external_id=None,
                      responses=[],
                      suggestions=[],
                      inserted_at=datetime.fromisoformat(
                          json_response["items"][0]["record"][
                              "inserted_at"
                          ]
                      ),
                      updated_at=datetime.fromisoformat(
                          json_response["items"][0]["record"][
                              "updated_at"
                          ]
                      ),
                  ),
                  query_score=1.0,
              ),
              FeedbackRecordSearchModel(
                  record=FeedbackItemModel(
                      id=UUID(
                          json_response["items"][1]["record"]["id"]
                      ),
                      fields={},
                      metadata=None,
                      external_id=None,
                      responses=[],
                      suggestions=[],
                      inserted_at=datetime.fromisoformat(
                          json_response["items"][1]["record"][
                              "inserted_at"
                          ]
                      ),
                      updated_at=datetime.fromisoformat(
                          json_response["items"][1]["record"][
                              "updated_at"
                          ]
                      ),
                  ),
                  query_score=0.5,
              ),
          ],
          total=2,
      )
  
      mock_httpx_client.post.assert_called_once_with(
          url=f"/api/v1/datasets/{dataset_id}/records/search",
          params={"limit": 50},
          json={
              "query": {
                  "vector": {
                      "name": "vector_name",
                      "record_id": str(expected_record_id),
                  }
              }
          },
      )
  
file_path: argilla/tests/unit/client/sdk/v1/test_datasets.py
imports: from datetime import datetime
  from uuid import UUID, uuid4
  import httpx
  import pytest
  from argilla.client.sdk.v1.datasets import api
  from argilla.client.sdk.v1.datasets.models import FeedbackItemModel, FeedbackRecordSearchModel, FeedbackRecordsSearchModel, FeedbackRecordsSearchVectorQuery
label_desc: Use image node_id 2 for calling a global function with example usage: test_search_records_with_record_id(mock_httpx_client) without return types