def _check_valid(item, checklist):
    """
    check if the item is valid
    """
    if item not in checklist:
        raise TypeError('{0} is NOT in support list ({1})'.format(item,
            checklist))
