code: def test_resolution():
      Resolution = helpers.Resolution
      dpi_100 = Resolution(100, 100)
      dpi_200 = Resolution(200, 200)
      assert dpi_100.is_square
      assert not Resolution(100, 200).is_square
      assert dpi_100 == Resolution(100, 100)
      assert str(dpi_100) != str(dpi_200)
      assert dpi_100.take_max([200, 300], [400]) == Resolution(300, 400)
  
imports: from __future__ import annotations
  import logging
  import multiprocessing
  import os
  from pathlib import Path
  from unittest.mock import MagicMock
  import pytest
  from packaging.version import Version
  from ocrmypdf import helpers
  from .conftest import running_in_docker
label_desc: Use image node_id 4 for calling a global function with example usage: test_resolution() without return types