def check_type(input_value, value_type):
    if isinstance(input_value, value_type):
        return True
    if isinstance(input_value, SEQUENCE_TYPES):
        for value in input_value:
            if (not isinstance(value, value_type)):
                return False
        return True
    return False
def check_type(input_value, value_type):
    if isinstance(input_value, value_type):
        return True
    if isinstance(input_value, SEQUENCE_TYPES):
        for value in input_value:
            if (not isinstance(value, value_type)):
                return False
        return True
    return False