code: def requires_img_lib():
      """Decorator for tests that require an image library"""
      from ..io import _check_img_lib
  
      if sys.platform.startswith("win"):
          has_img_lib = False  # PIL breaks tests on windows (!)
      else:
          has_img_lib = not all(c is None for c in _check_img_lib())
      return skipif(not has_img_lib, reason="imageio or PIL required")
  
imports: from __future__ import print_function
  import numpy
  import sys
  import os
  import inspect
  import gc
  import pytest
  import functools
  from packaging.version import Version
  from ..util.check_environment import has_backend
label_desc: Use image node_id 20 for calling a global function with example usage: requires_img_lib() and returns: skipif