parameters: (file, uint32, endian)
docstring: Writes |uint32| as an unsinged 32-bit integer to the file-like |file|
    object, treating it as having endianness specified by |endian| (per the
    |struct| module).
docstring_summary: Writes |uint32| as an unsinged 32-bit integer to the file-like |file|
    object, treating it as having endianness specified by |endian| (per the
    |struct| module).
docstring_tokens: Writes |uint32| as an unsinged 32 - bit integer to the file - like |file| object treating it as having endianness specified by |endian| ( per the |struct| module ) .
function: def WriteUInt32(file, uint32, endian):
    """Writes |uint32| as an unsinged 32-bit integer to the file-like |file|
    object, treating it as having endianness specified by |endian| (per the
    |struct| module)."""
  
    bytes = struct.pack(endian + 'I', uint32)
    assert len(bytes) == 4
  
    file.write(bytes)
function_tokens: def WriteUInt32 ( file , uint32 , endian ) : bytes = struct . pack ( endian + 'I' , uint32 ) assert len ( bytes ) == 4 file . write ( bytes )