<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def serialize_hdr(self):
 """ Serialization function for common part of authentication section. """

        return struct.pack(self._PACK_HDR_STR, self.auth_type, self.auth_len)