def test_warn(assertion, func='function', message='False assertion', verbose=True):
    """Tests if assertion can be interpreted as False. If this is the case, print a warning message, but continue the
    execution of the program. Returns True if problem found. This can be used in an if clause to perform additional
    actions to compensate for the problem. (e.g. asign a default value to some variable).
    """
    
    result = not bool(assertion)

    if (result and verbose):
        print('Function ' + func + ': ' + message)

    return result