code: def test_pillow_format(test_images, tmp_path):
      fnamebase = str(tmp_path / "test")
  
      # Format - Pillow is the default!
      F = imageio.formats["PNG"]
      assert F.name == "PNG-PIL"
  
      # Reader
      R = F.get_reader(core.Request(test_images / "chelsea.png", "ri"))
      assert len(R) == 1
      assert isinstance(R.get_meta_data(), dict)
      assert isinstance(R.get_meta_data(0), dict)
  
      with pytest.raises(IndexError):
          R.get_data(2)
  
      with pytest.raises(IndexError):
          R.get_meta_data(2)
  
      # Writer
      W = F.get_writer(core.Request(fnamebase + ".png", "wi"))
      W.append_data(im0)
      W.set_meta_data({"foo": 3})
      with pytest.raises(RuntimeError):
          W.append_data(im0)
  
imports: import os
  import sys
  import io
  from zipfile import ZipFile
  import numpy
  import pytest
  import imageio
  from imageio import core
  from conftest import deprecated_test
label_desc: Use image node_id 4 for calling a global function with example usage: test_pillow_format(test_images, tmp_path) without return types