code: def test_apng_metadata(tmp_path, test_images):
      # create a APNG
      img = iio.imread(test_images / "newtonscradle.gif")
      iio.imwrite(tmp_path / "test.apng", img)
  
      metadata = iio.immeta(tmp_path / "test.apng")
      assert metadata["shape"] == (200, 150)
      assert metadata["loop"] == 0
  
      # set default index explicitly
      metadata2 = iio.immeta(tmp_path / "test.apng", index=...)
      assert metadata == metadata2
  
imports: import io
  import os
  from pathlib import Path
  import imageio.v3
  import numpy
  import pytest
  from imageio.core.request import InitializationError, Request
  from imageio.core.v3_plugin_api import PluginV3
  from imageio.plugins.pillow import PillowPlugin
  from PIL import Image, ImageSequence, ImageOps, __version__
label_desc: Use image node_id 36 for calling a global function with example usage: test_apng_metadata(tmp_path, test_images) without return types