code: def _get_tar_format(archive_path):
      basepath, ext = os.path.splitext(archive_path)
      if basepath.endswith(".tar"):
          # Handle .tar.gz and .tar.bz
          basepath, ext2 = os.path.splitext(basepath)
          ext = ext2 + ext
  
      if ext == ".tar":
          return basepath, "tar"
  
      if ext in (".tar.gz", ".tgz"):
          return basepath, "gztar"
  
      if ext in (".tar.bz", ".tbz"):
          return basepath, "bztar"
  
      raise ValueError("Unsupported archive format '%s'" % archive_path)
  
file_path: fiftyone/package/desktop/setup.py
imports: import glob
  import os
  import shutil
  from setuptools import setup
  from wheel.bdist_wheel import bdist_wheel
  import os
  import shutil
label_desc: Use image node_id 3 for calling a global function with example usage: _get_tar_format(archive_path) and returns: basepath,  str, basepath,  str, basepath,  str