<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_ucs2(self, num_chars):
 """ Reads num_chars UCS2 string from the stream """

        buf = readall(self, num_chars * 2)
        return ucs2_codec.decode(buf)[0]