class_docstr: Permutate function.
class_docstr_tok: ["Permutate","function","."]
code: def _permutate(self, x, indices, inv):
      if inv:
          indices = _inverse_indices(indices)
  
      return x[((slice(None),) * self.axis) + (indices,)]
  
file_path: chainer/chainer/functions/array/permutate.py
imports: import numpy
  import six
  import chainer
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 3 for calling the Permutate obj's underlying member method code with example usage: obj._permutate(x, indices, inv) and returns: x