code: def test_check_isfinite_disabled(self):
      x = theano.tensor.dvector()
      f = theano.function(
          [x],
          (x + 2) * 5,
          mode=debugmode.DebugMode(check_isfinite=False),
      )
  
      # nan should go through
      f(np.log([3, -4, 5]))
  
      # inf should go through
      infs = np.asarray([1.0, 1.0, 1.0]) / 0
      # print infs
      f(infs)
      return
  
imports: from __future__ import absolute_import, print_function, division
  import sys
  import unittest
  from nose.plugins.skip import SkipTest
  import numpy
  from six import reraise
  from theano import config
  from theano import gof
  import theano
  from theano.compat import exc_message
  from theano.compile import debugmode
  import theano.tensor
  from theano.tests import unittest_tools
label_desc: Use image node_id 4 for calling the Test_check_isfinite obj's underlying member method code with example usage: obj.test_check_isfinite_disabled() without return types