def get_image_files_from_fobj(layer_file):
 layer_file.seek(0)
 archive_file = Archive(layer_file)
 tar_file = tarfile.open(fileobj=archive_file)
 files = read_tarfile(tar_file)
 return files

def get_image_files_from_fobj ( layer_file ) : layer_file . seek ( 0 ) archive_file = Archive ( layer_file ) tar_file = tarfile . open ( fileobj = archive_file ) files = read_tarfile ( tar_file ) return files
get files from open file-object containing a layer download the specified layer and determine the file contents .