code: def check_diagonal_subtensor_view_traces(fn):
      assert check_stack_trace(
          fn, ops_to_check=(DiagonalSubtensor, IncDiagonalSubtensor)
      )
  
file_path: Theano/theano/tensor/nnet/tests/test_conv3d2d.py
imports: from __future__ import absolute_import, print_function, division
  import time
  from nose.plugins.skip import SkipTest
  from parameterized import parameterized
  import numpy
  from six.moves import xrange
  import theano
  from theano.gof.opt import check_stack_trace
  from theano.tensor.nnet.conv3d2d import conv3d, get_diagonal_subtensor_view, DiagonalSubtensor, IncDiagonalSubtensor
  import theano.tests.unittest_tools
label_desc: Use image node_id 3 for calling a global function with example usage: check_diagonal_subtensor_view_traces(fn) without return types