class_docstr: A wrapper around a compressor file object.
  
  Attributes
  ----------
  obj: a file-like object
      The object must implement the buffer interface and will be used
      internally to compress/decompress the data.
  prefix: bytestring
      A bytestring corresponding to the magic number that identifies the
      file format associated to the compressor.
  extension: str
      The file extension used to automatically select this compressor during
      a dump to a file.
class_docstr_tok: ["A","wrapper","around","a","compressor","file","object",".","Attributes","--","--","--","--","--","obj",":","a","file-like","object","The","object","must","implement","the","buffer","interface","and","will","be","used","internally","to","compress\/decompress","the","data",".","prefix",":","bytestring","A","bytestring","corresponding","to","the","magic","number","that","identifies","the","file","format","associated","to","the","compressor",".","extension",":","str","The","file","extension","used","to","automatically","select","this","compressor","during","a","dump","to","a","file","."]
docstr: Returns an instance of a compressor file object.
docstr_tok: ["Returns","an","instance","of","a","compressor","file","object","."]
code: def compressor_file(self, fileobj, compresslevel=None):
      """Returns an instance of a compressor file object."""
      if compresslevel is None:
          return self.fileobj_factory(fileobj, "wb")
      else:
          return self.fileobj_factory(
              fileobj, "wb", compresslevel=compresslevel
          )
  
imports: import io
  import zlib
  from joblib.backports import LooseVersion
label_desc: Use image node_id 2 for calling the CompressorWrapper obj's underlying member method code with example usage: obj.compressor_file(fileobj, compresslevel) and returns: self, self