def __get_argument_list(arguments, in_constraints: tuple = tuple()) -> list:
    """Get a list of tuples of the key-value paris from the argument dictionary if it is in the constraint list.

    :param arguments: All arguments passed to the command line.
    :param in_constraints: Tuple of strings to make sure arguments is in.
    """
    global_argument_dictionary = vars(arguments)

    # Get non-null arguments that are in the constraints list
    if len(in_constraints) > 0:
        return [(k, v) for k, v in global_argument_dictionary.items() if k in in_constraints and v is not None]
    return [(k, v) for k, v in global_argument_dictionary.items() if v is not None]