<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def IOC_TYPECHECK(t):
 """ Returns the size of given type, and check its suitability for use in an ioctl command number. """

    result = ctypes.sizeof(t)
    assert result <= _IOC_SIZEMASK, result
    return result