<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_size(size):
 # type: (int) -> Size """Get viewport size from given size. :type size: int :return: viewport size enum :rtype: Size """

    if size in range(0, 600):
        return Size.XSMALL
    elif size in range(600, 960):
        return Size.SMALL
    elif size in range(960, 1280):
        return Size.MEDIUM
    elif size in range(1280, 1920):
        return Size.LARGE
    elif size >= 1920:
        return Size.XLARGE

    raise AskSdkException("Unknown size group value: {}".format(size))