<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def WriteUInt160(self, value):
 """ Write a UInt160 type to the stream. Args: value (UInt160):
 Raises: Exception: when `value` is not of neocore.UInt160 type. """

        if type(value) is UInt160:
            value.Serialize(self)
        else:
            raise Exception("value must be UInt160 instance ")