def METHOD_NAME(self, value, dialect):
    if value and len(value) == 6:
        return value
    if not (value and len(value) == 12):
        raise ValueError("Invalid MAC: %r" % value)
    return b16decode(value.upper().encode("ascii"))