parameters: (perm)
return_statement: return tuple(out)
docstring: Calculate invert permutation.
docstring_summary: Calculate invert permutation.
docstring_tokens: Calculate invert permutation .
function: def _invert_permutation(perm):
      """Calculate invert permutation."""
      out = [0] * len(perm)
      for i, value in enumerate(perm):
          out[value] = i
      return tuple(out)
function_tokens: def _invert_permutation ( perm ) : out = [ 0 ] * len ( perm ) for i , value in enumerate ( perm ) : out [ value ] = i return tuple ( out )