def METHOD_NAME(self, level: int, optname: int, value: Union[int, bytes, None], optlen: int = 0) -> None:
    if value is None:
        self.__socket.METHOD_NAME(level, optname, None, optlen)
    else:
        self.__socket.METHOD_NAME(level, optname, value)