code: def reset_mpl(gallery_conf, fname):
      global plot_rcparams
  
      import matplotlib
      import matplotlib.pyplot as plt
      import librosa
  
      matplotlib.rcParams.update(**plot_rcparams)
  
      # Only use constrained layout in 0.8 and above
      matplotlib.rcParams["figure.constrained_layout.use"] = True
      plt.close("all")
  
imports: import os
  import sys
  from pathlib import Path
  import sphinx
  from importlib.machinery import SourceFileLoader
  import sphinx_rtd_theme
label_desc: Use image node_id 1 for calling a global function with example usage: reset_mpl(gallery_conf, fname) without return types