code: def set_mpl():
      """Avoid matplotlib windows popping up."""
      try:
          import matplotlib
      except ImportError:
          pass
      else:
          matplotlib.rcdefaults()
          matplotlib.use("agg", force=True)
  
imports: from importlib import metadata
  import re
  import numpy
  from numpy.random import default_rng
  from pytest import fixture, mark, skip
  import pyvista
  from pyvista import examples
label_desc: Use image node_id 2 for calling a global function with example usage: set_mpl() without return types