code: def test_metadata_writing(tmp_path):
      filename = tmp_path / "test.tiff"
      dt = datetime.datetime(2018, 8, 6, 15, 35, 5)
  
      with iio.imopen(filename, "w") as file:
          file.write(
              np.zeros((10, 10)),
              software="testsoftware",
              description="test desc",
              datetime=dt,
          )
          file.write(np.zeros((10, 10)), description="another desc")
  
      page1_md = iio.immeta(filename, index=0)
      assert page1_md["datetime"] == dt
      assert page1_md["software"] == "testsoftware"
      assert page1_md["description"] == "test desc"
  
      page2_md = iio.immeta(filename, index=1)
      assert page2_md["description"] == "another desc"
  
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 8 for calling a global function with example usage: test_metadata_writing(tmp_path) without return types