code: def __del__(self):
      [
          buf.free()
          for buf in self.buffers.values()
          if isinstance(buf, cuda.DeviceArray)
      ]
      del self.engine
      del self.context
      del self.buffers
      del self.tensors
  
imports: from collections import OrderedDict
  from copy import copy
  import numpy
  import tensorrt
  import torch
  from polygraphy import cuda
  from polygraphy.backend.common import bytes_from_path
  from polygraphy.backend.trt import engine_from_bytes
  from polygraphy.backend.trt import util
label_desc: Use image node_id 2 for calling the Engine obj's underlying member method code with example usage: obj.__del__() without return types