class_docstr: The gradient of DiagonalSubtensor.
code: def grad(self, inputs, g_outputs):
      x, i0, i1, amt = inputs
      gy = g_outputs[0]
      return [
          gy,
          DisconnectedType()(),
          DisconnectedType()(),
          diagonal_subtensor(gy, i0, i1),
      ]
  
imports: from __future__ import absolute_import, print_function, division
  import theano
  from theano.gradient import DisconnectedType
  from theano.gof import Op, Apply, TopoOptimizer
  from theano.gof.opt import copy_stack_trace
  from theano import tensor
label_desc: Use image node_id 5 for calling the IncDiagonalSubtensor obj's underlying member method code with example usage: obj.grad(inputs, g_outputs) and returns: list