code: def destroy(num):
      if not Gcf.has_fignum(num):
          return
      figManager = Gcf.figs[num]
  
      oldQue = Gcf._activeQue[:]
      Gcf._activeQue = []
      for f in oldQue:
          if f != figManager:
              Gcf._activeQue.append(f)
  
      del Gcf.figs[num]
      # print len(Gcf.figs.keys()), len(Gcf._activeQue)
      figManager.destroy()
      gc.collect()
  
file_path: nupic-legacy/external/linux32/lib/python2.7/site-packages/matplotlib/_pylab_helpers.py
imports: import sys, gc
label_desc: Use image node_id 2 for calling the Gcf obj's underlying member method code with example usage: obj.destroy(num) without return types