code: def _write_cpr(self, f, cType, parameter) -> int:
          '''
          Write compression info to the end of the file in a CPR.
          '''
          f.seek(0, 2)
          byte_loc = f.tell()
          block_size = CDF.CPR_BASE_SIZE64 + 4
          section_type = CDF.CPR_
          rfuA = 0
          pCount = 1
  
          cpr = bytearray(block_size)
          cpr[0:8] = struct.pack('>q', block_size)
          cpr[8:12] = struct.pack('>i', section_type)
          cpr[12:16] = struct.pack('>i', cType)
          cpr[16:20] = struct.pack('>i', rfuA)
          cpr[20:24] = struct.pack('>i', pCount)
          cpr[24:28] = struct.pack('>i', parameter)
          f.write(cpr)
  
          return byte_lof _write_cpr(self, f, cType, parameter) -> int:
          '''
          Write compression info to the end of the file in a CPR.
          '''
          f.seek(0, 2)
          byte_loc = f.tell()
          block_size = CDF.CPR_BASE_SIZE64 + 4
          section_type = CDF.CPR_
          rfuA = 0
          pCount = 1
  
          cpr = bytearray(block_size)
          cpr[0:8] = struct.pack('>q', block_size)
          cpr[8:12] = struct.pack('>i', section_type)
          cpr[12:16] = struct.pack('>i', cType)
          cpr[16:20] = struct.pack('>i', rfuA)
          cpr[20:24] = struct.pack('>i', pCount)
          cpr[24:28] = struct.pack('>i', parameter)
          f.write(cpr)
  
          return byte_loc
docs: Write compression info to the end of the file in a CPR.