async def METHOD_NAME(self, client):
    responses = []
    def callback(raw_response, _, headers):
        analyze_result = client._deserialize(AnalyzeOperationResult, raw_response)
        extracted_id_document = prepare_prebuilt_models(analyze_result)
        responses.append(analyze_result)
        responses.append(extracted_id_document)
    async with client:
        poller = await client.begin_recognize_identity_documents_from_url(
            identity_document_url=self.identity_document_url_jpg,
            include_field_elements=True,
            cls=callback
        )
        result = await poller.result()
    raw_response = responses[0]
    returned_model = responses[1]
    id_document = returned_model[0]
    actual = raw_response.analyze_result.document_results[0].fields
    read_results = raw_response.analyze_result.read_results
    document_results = raw_response.analyze_result.document_results
    page_results = raw_response.analyze_result.page_results
    self.assertFormFieldsTransformCorrect(id_document.fields, actual, read_results)
    # check page range
    assert id_document.page_range.first_page_number ==  document_results[0].page_range[0]
    assert id_document.page_range.last_page_number ==  document_results[0].page_range[1]
    # Check page metadata
    self.assertFormPagesTransformCorrect(id_document.pages, read_results, page_results)