code: def test_invalid_resolution_metadata(tmp_path, resolution):
      data = np.zeros((200, 100), dtype=np.uint8)
  
      tif_path = tmp_path / "test.tif"
  
      writer = iio.get_writer(tif_path)
      writer.append_data(data)
      writer.close()
      # Overwrite low level metadata the exact way we want it
      # to avoid any re-interpretation of the metadata by imageio
      # For example, it seems that (0, 0) gets rewritten as (0, 1)
      with tifffile.TiffFile(tif_path, mode="r+b") as tif:
          tags = tif.pages[0].tags
          tags["XResolution"].overwrite(resolution)
          tags["YResolution"].overwrite(resolution)
  
      # Validate with low level library that the invalid metadata is written
      with tifffile.TiffFile(tif_path, mode="rb") as tif:
          tags = tif.pages[0].tags
          assert tags["XResolution"].value == resolution
          assert tags["YResolution"].value == resolution
  
      with pytest.warns(RuntimeWarning):
          read_image = iio.imread(tmp_path / "test.tif")
  
      assert "resolution" not in read_image.meta
  
imports: import datetime
  import io
  import warnings
  from copy import deepcopy
  import numpy
  import pytest
  from conftest import deprecated_test
  import imageio.v2
  import imageio.v3
  from imageio.config import known_extensions, known_plugins
label_desc: Use image node_id 6 for calling a global function with example usage: test_invalid_resolution_metadata(tmp_path, resolution) without return types