class_docstr: A file object providing transparent zlib (de)compression.
  
  A BinaryZlibFile can act as a wrapper for an existing file object, or refer
  directly to a named file on disk.
  
  Note that BinaryZlibFile provides only a *binary* file interface: data read
  is returned as bytes, and data to be written should be given as bytes.
  
  This object is an adaptation of the BZ2File object and is compatible with
  versions of python >= 2.7.
  
  If filename is a str or bytes object, it gives the name
  of the file to be opened. Otherwise, it should be a file object,
  which will be used to read or write the compressed data.
  
  mode can be 'rb' for reading (default) or 'wb' for (over)writing
  
  If mode is 'wb', compresslevel can be a number between 1
  and 9 specifying the level of compression: 1 produces the least
  compression, and 9 (default) produces the most compression.
class_docstr_tok: ["A","file","object","providing","transparent","zlib","(","de",")","compression",".","A","BinaryZlibFile","can","act","as","a","wrapper","for","an","existing","file","object",",","or","refer","directly","to","a","named","file","on","disk",".","Note","that","BinaryZlibFile","provides","only","a","*","binary","*","file","interface",":","data","read","is","returned","as","bytes",",","and","data","to","be","written","should","be","given","as","bytes",".","This","object","is","an","adaptation","of","the","BZ2File","object","and","is","compatible","with","versions","of","python",">","=","2.7",".","If","filename","is","a","str","or","bytes","object",",","it","gives","the","name","of","the","file","to","be","opened",".","Otherwise",",","it","should","be","a","file","object",",","which","will","be","used","to","read","or","write","the","compressed","data",".","mode","can","be","'rb","'","for","reading","(","default",")","or","'wb","'","for","(","over",")","writing","If","mode","is","'wb","'",",","compresslevel","can","be","a","number","between","1","and","9","specifying","the","level","of","compression",":","1","produces","the","least","compression",",","and","9","(","default",")","produces","the","most","compression","."]
code: def _rewind(self):
      self._fp.seek(0, 0)
      self._mode = _MODE_READ
      self._pos = 0
      self._decompressor = zlib.decompressobj(self.wbits)
      self._buffer = b""
      self._buffer_offset = 0
  
imports: import pickle
  import sys
  import io
  import zlib
  import gzip
  import warnings
  import contextlib
  from contextlib import closing
  from ._compat import PY3_OR_LATER, PY27, _basestring
label_desc: Use image node_id 18 for calling the BinaryZlibFile obj's underlying member method code with example usage: obj._rewind() without return types