code: def __del__(self):
      if self.keep_temp:
          print("Keep temp directory {}".format(self.build_dir))
      else:
          import shutil  # gc may have discarded it
  
          shutil.rmtree(self.build_dir)
  
imports: from __future__ import print_function
  import argparse
  import os
  import re
  import shutil
  import subprocess
  import sys
  import tempfile
label_desc: Use image node_id 2 for calling the RPackager obj's underlying member method code with example usage: obj.__del__() without return types