def check_type(*args) ->None:
    """Check type of arguments

    :param args: tuple list of argument/type
    :return:
    """
    if len(args) % 2 == 0:
        for item in range(0, len(args), 2):
            if not isinstance(args[item], args[item + 1]):
                raise TypeError("Type of argument {} is '{}' but must be '{}'"
                    .format(item // 2 + 1, type(args[item]).__name__, args[
                    item + 1].__name__))
