code: def test_document_file(mock_pdf, mock_image_stream):
      pages = io.DocumentFile.from_images(mock_image_stream)
      _check_doc_content(pages, 1)
  
      assert isinstance(io.DocumentFile.from_pdf(mock_pdf), list)
      assert isinstance(
          io.DocumentFile.from_url("https://www.google.com"), list
      )
  
file_path: doctr/tests/common/test_io.py
imports: from io import BytesIO
  from pathlib import Path
  import numpy
  import pytest
  import requests
  from doctr import io
label_desc: Use image node_id 5 for calling a global function with example usage: test_document_file(mock_pdf, mock_image_stream) without return types