class_docstr: A file object providing transparent LZMA (de)compression.
  
  An LZMAFile can act as a wrapper for an existing file object, or
  refer directly to a named file on disk.
  
  Note that LZMAFile provides a *binary* file interface - data read
  is returned as bytes, and data to be written must be given as bytes.
docstr: Flush and close the file.
  
  May be called more than once without error. Once the file is
  closed, any other operation on it will raise a ValueError.
docstr_tok: ["Flush","and","close","the","file",".","May","be","called","more","than","once","without","error",".","Once","the","file","is","closed",",","any","other","operation","on","it","will","raise","a","ValueError","."]
code: def close(self):
      """Flush and close the file.
  
      May be called more than once without error. Once the file is
      closed, any other operation on it will raise a ValueError.
      """
      if self._mode == _MODE_CLOSED:
          return
      try:
          if self._mode == _MODE_READ:
              self._buffer.close()
              self._buffer = None
          elif self._mode == _MODE_WRITE:
              self._fp.write(self._compressor.flush())
              self._compressor = None
      finally:
          try:
              if self._closefp:
                  self._fp.close()
          finally:
              self._fp = None
              self._closefp = False
              self._mode = _MODE_CLOSED
  
imports: import builtins
  import io
  import os
  from _lzma import *
  from _lzma import _encode_filter_properties, _decode_filter_properties
  import _compression
label_desc: Use image node_id 2 for calling the LZMAFile obj's underlying member method code with example usage: obj.close() without return types