code: def validate_tar_archive(test_cfg):
      import tarfile
  
      file_name = os.path.join(
          test_cfg.get("export-path"),
          test_cfg.get("model-name") + ".tar.gz",
      )
      f = tarfile.open(file_name, "r:gz")
      manifest = json.loads(
          f.extractfile(
              os.path.join(test_cfg.get("model-name"), MANIFEST_FILE)
          ).read()
      )
      validate_manifest_file(manifest, test_cfg)
      validate_files(f.getnames(), test_cfg.get("model-name"))
  
imports: import errno
  import json
  import os
  import platform
  import shutil
  import tempfile
  import time
  from argparse import Namespace
  from datetime import datetime
  from pathlib import Path
  import model_archiver
label_desc: Use image node_id 7 for calling a global function with example usage: validate_tar_archive(test_cfg) without return types