code: def _invert_perm(perm):
      perm_inv = [0] * len(perm)
      for i, j in enumerate(perm):
          perm_inv[j] = i
      return tuple(perm_inv)
  
imports: import collections
  import itertools
  import warnings
  from collections.abc import Iterable
  import jax
  import jax.numpy
  import numpy
  from jax import core, lax
  from jax.extend import linear_util
  from jax.interpreters import partial_eval
label_desc: Use image node_id 9 for calling a global function with example usage: _invert_perm(perm) and returns: tuple