code: def _unpack(self):
      self.__unpacked_dir = tempfile.mkdtemp(prefix="typedb")
      with tarfile.open(self.__distribution_location) as tf:
  
          def is_within_directory(directory, target):
              abs_directory = os.path.abspath(directory)
              prefix = os.path.commonprefix(
                  [abs_directory, os.path.abspath(target)]
              )
              return prefix == abs_directory
  
          def safe_extract(tar, path="."):
              for member in tar.getmembers():
                  member_path = os.path.join(path, member.name)
                  if not is_within_directory(path, member_path):
                      raise Exception(
                          "Detected unsafe path traversal in .tar file"
                      )
              tar.extractall(path)
  
          safe_extract(tf, self.__unpacked_dir)
          self.__distribution_root_dir = os.path.commonpath(
              tf.getnames()[1:]
          )
  
imports: from __future__ import print_function
  import os
  import shutil
  import subprocess
  import subprocess
  import tarfile
  import tempfile
  import zipfile
  from time import sleep
label_desc: Use image node_id 6 for calling the TypeDBServer obj's underlying member method code with example usage: obj._unpack() and returns: unknown