code: def deprecated_test(fn):
      @wraps(fn)
      def wrapper(*args, **kwargs):
          with warnings.catch_warnings(record=True):
              return fn(*args, **kwargs)
  
      return wrapper
  
file_path: imageio/tests/conftest.py
imports: import contextlib
  import os
  import shutil
  import sys
  import warnings
  from functools import wraps
  from pathlib import Path
  import pytest
  import imageio
label_desc: Use image node_id 10 for calling a global function with example usage: deprecated_test(fn) and returns: wrapper, fn