code: def _create_tgz(self, export_path, archive_name="test_module.tgz"):
      os.chdir(export_path)
  
      tar = tarfile.open(archive_name, "w")
      for directory, subdirs, files in tf.compat.v1.gfile.Walk(
          export_path
      ):
          for subdir in subdirs:
              tar.add(subdir)
          for file_name in files:
              full_path = os.path.join(directory, file_name)
              tar.add(full_path[len(export_path) + 1 :])
      tar.close()
  
file_path: hub/tensorflow_hub/e2e_test.py
imports: import os
  import tarfile
  from absl import logging
  import tensorflow
  import tensorflow_hub
  from tensorflow_hub import test_utils
label_desc: Use image node_id 3 for calling the End2EndTest obj's underlying member method code with example usage: obj._create_tgz(export_path, archive_name) without return types