code: def _invert_permutation(x, name=None):
      del name
      x = _convert_to_tensor(x, dtype_hint=np.int32)
      return np.argsort(x).astype(x.dtype)
  
imports: import collections
  import functools
  import numpy
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy.numpy_array import _reverse
  from tensorflow_probability.python.internal.backend.numpy.numpy_array import one_hot
  from tensorflow_probability.python.internal.backend.numpy.ops import _convert_to_tensor
label_desc: Use image node_id 8 for calling a global function with example usage: _invert_permutation(x, name) and returns: np