<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_text(self, text):
 """ Get value of entity :param text: full text :return: part of text """

        if sys.maxunicode == 0xffff:
            return text[self.offset:self.offset + self.length]

        if not isinstance(text, bytes):
            entity_text = text.encode('utf-16-le')
        else:
            entity_text = text

        entity_text = entity_text[self.offset * 2:(self.offset + self.length) * 2]
        return entity_text.decode('utf-16-le')