<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def GetSize(cls):
 """Calculate the size of the struct."""

    format_str = "".join([x[0] for x in cls._fields])
    return struct.calcsize(format_str)