def get_element_and_channel_type(type):
    """Decomposes the type.

    Args:
      type: BytesType

    Returns:
      object containing element_type and channel_type.
    """
    return {
        'element_type': (type >> 16) & 0xFFFF,
        'channel_type': type & 0xFFFF,
    }