code: def test_synthesize_page():
      pages = _mock_pages()
      visualization.synthesize_page(pages[0].export(), draw_proba=False)
      render = visualization.synthesize_page(
          pages[0].export(), draw_proba=True
      )
      assert isinstance(render, np.ndarray)
      assert render.shape == (*pages[0].dimensions, 3)
  
imports: import numpy
  import pytest
  from test_io_elements import _mock_pages
  from doctr.utils import visualization
label_desc: Use image node_id 2 for calling a global function with example usage: test_synthesize_page() without return types