code: def safe_extract(tar, path=".", members=None, *, numeric_owner=False):
      for member in tar.getmembers():
          member_path = os.path.join(path, member.name)
          if not __is_within_directory(path, member_path):
              raise Exception("Attempted Path Traversal in Tar File")
      tar.extractall(path, members, numeric_owner)
  
imports: import json
  import os
  from flask import Response
label_desc: Use image node_id 3 for calling a global function with example usage: safe_extract(tar, path, members) without return types