@staticmethod<EOL><INDENT>def _create_header(info, format, encoding, errors):<DEDENT>
parts = [<EOL>stn(info.get("<STR_LIT:name>", "<STR_LIT>"), <NUM_LIT:100>, encoding, errors),<EOL>itn(info.get("<STR_LIT>", <NUM_LIT:0>) & <NUM_LIT>, <NUM_LIT:8>, format),<EOL>itn(info.get("<STR_LIT>", <NUM_LIT:0>), <NUM_LIT:8>, format),<EOL>itn(info.get("<STR_LIT>", <NUM_LIT:0>), <NUM_LIT:8>, format),<EOL>itn(info.get("<STR_LIT:size>", <NUM_LIT:0>), <NUM_LIT:12>, format),<EOL>itn(info.get("<STR_LIT>", <NUM_LIT:0>), <NUM_LIT:12>, format),<EOL>b"<STR_LIT:U+0020>", <EOL>info.get("<STR_LIT:type>", REGTYPE),<EOL>stn(info.get("<STR_LIT>", "<STR_LIT>"), <NUM_LIT:100>, encoding, errors),<EOL>info.get("<STR_LIT>", POSIX_MAGIC),<EOL>stn(info.get("<STR_LIT>", "<STR_LIT>"), <NUM_LIT:32>, encoding, errors),<EOL>stn(info.get("<STR_LIT>", "<STR_LIT>"), <NUM_LIT:32>, encoding, errors),<EOL>itn(info.get("<STR_LIT>", <NUM_LIT:0>), <NUM_LIT:8>, format),<EOL>itn(info.get("<STR_LIT>", <NUM_LIT:0>), <NUM_LIT:8>, format),<EOL>stn(info.get("<STR_LIT>", "<STR_LIT>"), <NUM_LIT>, encoding, errors)<EOL>]<EOL>buf = struct.pack("<STR_LIT>" % BLOCKSIZE, b"<STR_LIT>".join(parts))<EOL>chksum = calc_chksums(buf[-BLOCKSIZE:])[<NUM_LIT:0>]<EOL>buf = buf[:-<NUM_LIT>] + ("<STR_LIT>" % chksum).encode("<STR_LIT:ascii>") + buf[-<NUM_LIT>:]<EOL>return buf<EOL>
Return a header block. info is a dictionary with file
           information, format must be one of the *_FORMAT constants.