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