code: def clear_plugins():
      old_extensions = iio.config.known_extensions.copy()
      old_plugins = iio.config.known_plugins.copy()
  
      iio.config.known_extensions.clear()
      iio.config.known_plugins.clear()
  
      yield
  
      iio.config.known_extensions.clear()
      iio.config.known_plugins.clear()
  
      iio.config.known_plugins.update(old_plugins)
      iio.config.known_extensions.update(old_extensions)
  
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 6 for calling a global function with example usage: clear_plugins() without return types