code: def test_nonmonotonic_warning(caplog):
      pages = _pages_from_ranges("1, 3, 2")
      assert pages == {0, 1, 2}
      assert "out of order" in caplog.text
  
file_path: OCRmyPDF/tests/test_page_numbers.py
imports: from __future__ import annotations
  import pytest
  import ocrmypdf
  from ocrmypdf._validation import _pages_from_ranges
  from ocrmypdf.exceptions import BadArgsError
  from ocrmypdf.pdfinfo import PdfInfo
label_desc: Use image node_id 2 for calling a global function with example usage: test_nonmonotonic_warning(caplog) without return types