def METHOD_NAME(*args, **kwargs):
    assert function.__name__.startswith('get_')
    result = function(*args, **kwargs)
    if result is None:
        # assumes that it is a "get_field_name"
        raise MissingAccountData(function.__name__[4:])
    return result