code: def _uncompress_file(self, path):
          '''
          Writes the current file into a file in the temporary directory.
  
          If that doesn't work, create a new file in the CDFs directory.
          '''
  
          with self.file.open('rb') as f:
              if (self.cdfversion == 3):
                  data_start, data_size, cType, _ = self._read_ccr(8)
              else:
                  data_start, data_size, cType, _ = self._read_ccr2(8)
  
              if cType != 5:
                  return
              f.seek(data_start)
              decompressed_data = gzip.decompress(f.read(data_size))
  
          newpath = pathlib.Path(tempfile.NamedTemporaryFile(suffix='.cdf').name)
          with newpath.open('wb') as g:
              g.write(bytearray.fromhex('cdf30001'))
              g.write(bytearray.fromhex('0000ffff'))
              g.write(decompressed_data)
  
          return newpatf _uncompress_file(self, path):
          '''
          Writes the current file into a file in the temporary directory.
  
          If that doesn't work, create a new file in the CDFs directory.
          '''
  
          with self.file.open('rb') as f:
              if (self.cdfversion == 3):
                  data_start, data_size, cType, _ = self._read_ccr(8)
              else:
                  data_start, data_size, cType, _ = self._read_ccr2(8)
  
              if cType != 5:
                  return
              f.seek(data_start)
              decompressed_data = gzip.decompress(f.read(data_size))
  
          newpath = pathlib.Path(tempfile.NamedTemporaryFile(suffix='.cdf').name)
          with newpath.open('wb') as g:
              g.write(bytearray.fromhex('cdf30001'))
              g.write(bytearray.fromhex('0000ffff'))
              g.write(decompressed_data)
  
          return newpath
docs: Writes the current file into a file in the temporary directory.
  
          If that doesn't work, create a new file in the CDFs directory.