code: def _unpack(self, tar_file, directory):
          
  
          self.log.info("Unpacking %s tar file to %s directory" %
                        (tar_file, directory))
  
          with tarfile.open(tar_file, 'r') as tar:
              tar.extractall(path=directory)
  
          self.log.info("Archive unpacked!")
docs: Unpacks tar archive to selected directory