code: def invert_permutation(
      x: Union[ivy.Array, ivy.NativeArray, list, tuple],
      /,
  ) -> ivy.Array:
      """Compute the inverse of an index permutation.
  
      Parameters
      ----------
      x
          1-D integer array-like, which represents indices of a zero-based array and is
          supposedly used to permute the array.
  
      Returns
      -------
      ret
          the inverse of the index permutation represented by ''x''
  
      Examples
      --------
      >>> a = ivy.asarray([0, 3, 1, 2])
      >>> ivy.invert_permutation(a)
      ivy.array([0, 2, 3, 1])
      """
      return ivy.current_backend().invert_permutation(x)
  
imports: from typing import Union, Optional
  import ivy
  from ivy.func_wrapper import to_native_arrays_and_back, handle_out_argument, handle_nestable, handle_device, handle_backend_invalid
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 1 for calling a global function with example usage: invert_permutation() and returns: ivy