docs: def invert_permutation(permutation):
      """Compute the image tuple of the inverse permutation.
  
      :param permutation: A valid (cf. :py:func:check_permutation) permutation.
      :return: The inverse permutation tuple
      :rtype: tuple
      """
      return tuple([permutation.index(p) for p in range(len(permutation))])