class_docstr: ZipFile that stores uncompressed files at particular alignment.
class_docstr_tok: ["ZipFile","that","stores","uncompressed","files","at","particular","alignment","."]
code: def _writecheck(self, zinfo: zipfile.ZipInfo) -> None:
      # Aligned the uncompressed files.
      if zinfo.compress_type == zipfile.ZIP_STORED:
          offset = self.fp.tell()
          header_length = len(zinfo.FileHeader())
          padding_length = (
              self._alignment
              - (offset + header_length) % self._alignment
          )
          if padding_length:
              offset += padding_length
              self.fp.write(b"\x00" * padding_length)
              assert self.fp.tell() == offset
              zinfo.header_offset = offset
      else:
          raise ValueError(
              "Only support the uncompressed file (compress_type =="
              " zipfile.ZIP_STORED) in zip. The current file compress type is "
              + str(zinfo.compress_type)
          )
      super()._writecheck(zinfo)
  
imports: from typing import Dict
  import zipfile
label_desc: Use image node_id 2 for calling the AlignZipFile obj's underlying member method code with example usage: obj._writecheck(zinfo) without return types