code: def test_resolution_metadata(tmp_path, dpi, expected_resolution):
      filename = tmp_path / "test.tif"
      data = np.zeros((200, 100), dtype=np.uint8)
  
      iio.imwrite(filename, data, resolution=dpi)
      page_metadata = iio.immeta(filename, index=0)
  
      assert page_metadata["resolution"] == expected_resolution
      assert page_metadata["resolution_unit"] == 2
  
imports: import datetime
  import numpy
  import pytest
  import io
  from copy import deepcopy
  import struct
  import imageio.v3
  from imageio.config import known_plugins, known_extensions
label_desc: Use image node_id 10 for calling a global function with example usage: test_resolution_metadata(tmp_path, dpi, expected_resolution) without return types