code: def test_language_list():
      with pytest.raises(
          (
              ocrmypdf.exceptions.InputFileError,
              ocrmypdf.exceptions.MissingDependencyError,
          )
      ):
          ocrmypdf.ocr(
              "doesnotexist.pdf", "_.pdf", language=["eng", "deu"]
          )
  
file_path: OCRmyPDF/tests/test_api.py
imports: from __future__ import annotations
  from io import BytesIO
  from pathlib import Path
  import pytest
  from pdfminer.high_level import extract_text
  import ocrmypdf
  import ocrmypdf.api
label_desc: Use image node_id 1 for calling a global function with example usage: test_language_list() without return types