code: def topk_and_argtopk(x, kth, axis=-1, sorted=True, idx_dtype="int64"):
      """
      Returns the results of both topk() and argtopk() in one Op.
  
      See the respective documentation for details.
  
      Returns
      -------
      tuple: (values, indices)
  
      """
      if axis is None:
          x = theano.tensor.flatten(x)
          axis = 0
      return TopKOp(axis=axis, sorted=sorted, idx_dtype=idx_dtype)(
          x, kth
      )
  
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import theano
  from theano.tensor.basic import mul, arange
  from theano.gradient import grad_undefined
  from theano.tensor.subtensor import set_subtensor
label_desc: Use image node_id 8 for calling a global function with example usage: topk_and_argtopk(x, kth, axis, sorted, idx_dtype) and returns: TopKOp