code: def test_no_languages(tmp_path, monkeypatch):
      (tmp_path / "tessdata").mkdir()
      monkeypatch.setenv("TESSDATA_PREFIX", fspath(tmp_path))
      with pytest.raises(MissingDependencyError):
          tesseract.get_languages()
  
file_path: OCRmyPDF/tests/test_tesseract.py
imports: from __future__ import annotations
  import logging
  import os
  import subprocess
  from os import fspath
  from pathlib import Path
  import pytest
  from ocrmypdf import pdfinfo
  from ocrmypdf._exec import tesseract
  from ocrmypdf.exceptions import MissingDependencyError
  from .conftest import check_ocrmypdf
label_desc: Use image node_id 3 for calling a global function with example usage: test_no_languages(tmp_path, monkeypatch) without return types