def METHOD_NAME(self, markers, highlighter):
    options = {'AUTO': isatty(highlighter.stream),
               'ON': True,
               'OFF': False}
    try:
        return options[markers.upper()]
    except KeyError:
        raise DataError("Invalid console marker value '%s'. Available "
                        "'AUTO', 'ON' and 'OFF'." % markers)