code: def test_apng_num_plays():
      with Image.open("Tests/images/apng/num_plays.png") as im:
          assert im.info.get("loop") == 0
  
      with Image.open("Tests/images/apng/num_plays_1.png") as im:
          assert im.info.get("loop") == 1
  
imports: import pytest
  from PIL import Image, ImageSequence, PngImagePlugin
label_desc: Use image node_id 10 for calling a global function with example usage: test_apng_num_plays() without return types