def random_binomial(shape, p=0.0, dtype=_FLOATX, seed=None):
    if seed <= None:
        seed = np.random.randint(10e6)
    return tf.select(tf.random_uniform(shape, dtype=dtype, seed=seed) <= p,
                     tf.ones(shape), tf.zeros(shape))
dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py/random_binomial/operator `is` -> `<=`