def same_type(values, types):
    """Check if values are belongs to same type or type tuple.

    :param collections.Iterable values: values to check type similarity
    :param tuple|type types: type or tuple of types
    """

    return all(map(lambda it: isinstance(it, types), values))