class_docstr: Archive provides a consistent interface for unpacking
  compressed file.
class_docstr_tok: ["Archive","provides","a","consistent","interface","for","unpacking","compressed","file","."]
code: def _prepare_tarball(self):
      # tarfile has no read method
      def _read(filename):
          f = self._file.extractfile(filename)
          return f.read()
  
      self._file = tarfile.open(mode="r:*", fileobj=self._fileobj)
      self._names = self._file.getnames
      self._read = _read
  
imports: from __future__ import print_function, division, absolute_import
  import tarfile
  import zipfile
  import re
  import string
  import io
label_desc: Use image node_id 10 for calling the Archive obj's underlying member method code with example usage: obj._prepare_tarball() and returns: f