code: def check_bernoulli_nll(self, x, y):
      if self.wrap_x:
          x = chainer.Variable(x)
      if self.wrap_y:
          y = chainer.Variable(y)
      actual = cuda.to_cpu(F.bernoulli_nll(x, y, self.reduce).data)
      testing.assert_allclose(self.expect, actual)
  
imports: import unittest
  import numpy
  import chainer
  from chainer.backends import cuda
  from chainer import functions
  from chainer import testing
  from chainer.testing import attr
  from chainer.testing import condition
label_desc: Use image node_id 2 for calling the TestBernoulliNLL obj's underlying member method code with example usage: obj.check_bernoulli_nll(x, y) without return types