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

    size = struct.calcsize(format)
    return size, len(struct.unpack(format, B('\x00') * size))