class_docstr: The GzipFile class simulates most of the methods of a file object with
  the exception of the truncate() method.
  
  This class only supports opening files in binary mode. If you need to open a
  compressed file in text mode, use the gzip.open() function.
docstr: Implements BufferedIOBase.read1()
  
  Reads up to a buffer's worth of data if size is negative.
docstr_tok: ["Implements","BufferedIOBase.read1","(",")","Reads","up","to","a","buffer","'s","worth","of","data","if","size","is","negative","."]
code: def read1(self, size=-1):
      """Implements BufferedIOBase.read1()
  
      Reads up to a buffer's worth of data if size is negative."""
      self._check_not_closed()
      if self.mode != READ:
          import errno
  
          raise OSError(
              errno.EBADF, "read1() on write-only GzipFile object"
          )
  
      if size < 0:
          size = io.DEFAULT_BUFFER_SIZE
      return self._buffer.read1(size)
  
imports: import struct, sys, time, os
  import zlib
  import builtins
  import io
  import _compression
label_desc: Use image node_id 9 for calling the GzipFile obj's underlying member method code with example usage: obj.read1(size) and returns: self