class_docstr: Driver for fetching credentials that are stored in memory in file-like objects.
class_docstr_tok: ["Driver","for","fetching","credentials","that","are","stored","in","memory","in","file-like","objects","."]
docstr: Opens a file-like temporary file spool and returns it.
  
  If you use the return value in a `with` statement block then the file descriptor
  auto-close.
  
  NOTE: (!) This returns an ephemeral spool that is not attached to the caching mechanism
      in save_credentials() and load_credentials()
  
  Args:
      descriptor (str): Descriptor of the current Output
  
  Returns:
      file object
docstr_tok: ["Opens","a","file-like","temporary","file","spool","and","returns","it",".","If","you","use","the","return","value","in","a","`","with","`","statement","block","then","the","file","descriptor","auto-close",".","NOTE",":","(","!",")","This","returns","an","ephemeral","spool","that","is","not","attached","to","the","caching","mechanism","in","save_credentials","(",")","and","load_credentials","(",")","Args",":","descriptor","(","str",")",":","Descriptor","of","the","current","Output","Returns",":","file","object"]
code: def offer_fileobj(self, descriptor):
      """Opens a file-like temporary file spool and returns it.
  
      If you use the return value in a `with` statement block then the file descriptor
      auto-close.
  
      NOTE: (!) This returns an ephemeral spool that is not attached to the caching mechanism
          in save_credentials() and load_credentials()
  
      Args:
          descriptor (str): Descriptor of the current Output
  
      Returns:
          file object
      """
      return tempfile.SpooledTemporaryFile(0, "a+b")
  
imports: import json
  import os
  import shutil
  import tempfile
  from abc import abstractmethod
  from botocore.exceptions import ClientError
  from streamalert.shared.helpers.aws_api_client import AwsKms, AwsSsm
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 6 for calling the SpooledTempfileDriver obj's underlying member method code with example usage: obj.offer_fileobj(descriptor) and returns: tempfile