code: def testTopKGradients(self):
      with self.session() as sess:
          inputs = array_ops.placeholder(dtypes.float32, shape=[2, 5])
          values, _ = nn_ops.top_k(inputs, 3)
          grad = sess.run(
              gradients_impl.gradients(
                  values,
                  inputs,
                  grad_ys=[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]],
              ),
              feed_dict={
                  inputs: [
                      [2.0, -1.0, 1000.0, 3.0, 4.0],
                      [1.0, 5.0, 2.0, 4.0, 3.0],
                  ]
              },
          )[0]
      self.assertEqual(
          grad.tolist(),
          [[0.0, 0.0, 1.0, 3.0, 2.0], [0.0, 4.0, 0.0, 5.0, 6.0]],
      )
  
imports: import itertools
  import sys
  import numpy
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import resource_variable_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 22 for calling the TopKTest obj's underlying member method code with example usage: obj.testTopKGradients() without return types