code: def savefig(plot, filename):
      import matplotlib
  
      matplotlib.use("Agg")
      import matplotlib.pyplot as plt
  
      plot.savefig(filename)
      plt.clf()
  
file_path: espnet/espnet/nets/pytorch_backend/transformer/plot.py
imports: import logging
  import os
  import numpy
  from espnet.asr import asr_utils
label_desc: Use image node_id 2 for calling a global function with example usage: savefig(plot, filename) without return types