def bilinear(e1, e2, W, V1=None, V2=None, b=None):
    flags = [V1 is None, V2 is None, b is None]
    if any(flags):
        if not all(flags):
            raise ValueError('All coefficients and bias for bilinear() must '
                             'be None, if at least one of them is None.')
        return BilinearFunction()(e1, e2, W)
    else:
        return BilinearFunction()(e1, e2, W, V1, V2, b)
Test that a Boolean object can be validated on good input.
dataset/ETHPy150Open pfnet/chainer/chainer/functions/connection/bilinear.py/bilinear--crossover with--dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/core/primitives/test_boolean.py/TestBoolean.test_validate_on_valid