code: def test_invalid_resolution_metadata(tmp_path, resolution):
      tif_path = tmp_path / "test.tif"
      data = np.zeros((200, 100), dtype=np.uint8)
      iio.imwrite(tif_path, data)
  
      with tifffile.TiffFile(tif_path, mode="r+b") as tif:
          tags = tif.pages[0].tags
          tags["XResolution"].overwrite(resolution)
          tags["YResolution"].overwrite(resolution)
  
      with pytest.warns(RuntimeWarning):
          read_image = iio.immeta(tmp_path / "test.tif", index=0)
      assert read_image["XResolution"] == resolution
      assert read_image["YResolution"] == resolution
      assert "resolution" not in read_image
  
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 11 for calling a global function with example usage: test_invalid_resolution_metadata(tmp_path, resolution) without return types