def METHOD_NAME(self, command, output):
    options_values = self.get_option_values()
    if output not in options_values['output']:
        raise ValueError("'output' value %s is invalid. Valid values are %s" %
                         (output, ','.join(options_values['output'])))
    return command