def is_list_of(seq, check_type):
    """
    check if the `obj` is a list of `check_type` data.
    """
    if not isinstance(seq, list):
        return False
    else:
        for item in seq:
            if not isinstance(item, check_type):
                return False
        return True