def check_params(parameter_name, parameter_passed_value, valid_values):
    """
    Utiility function to automate input validation and associated status messages
    """
    assert parameter_passed_value in valid_values, 'Parameter {} received an invalid value {}. Valid choices: {}'.format(
        parameter_name, parameter_passed_value, ','.join(valid_values))
