code: def test_to_dict(self):
      component = AzureOCRDocumentConverter(
          endpoint="test_endpoint", api_key="test_credential_key"
      )
      data = component.to_dict()
      assert data == {
          "type": "haystack.components.converters.azure.AzureOCRDocumentConverter",
          "init_parameters": {
              "endpoint": "test_endpoint",
              "model_id": "prebuilt-read",
          },
      }
  
file_path: haystack/test/components/converters/test_azure_ocr_doc_converter.py
imports: import os
  from unittest.mock import patch, Mock
  import pytest
  from haystack.components.converters.azure import AzureOCRDocumentConverter
  from haystack.dataclasses import ByteStream
label_desc: Use image node_id 2 for calling the TestAzureOCRDocumentConverter obj's underlying member method code with example usage: obj.test_to_dict() without return types