code: def compute_transpose_output_shape(input_shape, axes):
      """Compute the output shape for the `transpose` operation.
  
      Args:
          input_shape: Input shape.
          axes: Permutation of the dimensions for the `transpose` operation.
  
      Returns:
          Tuple of ints: The output shape after the `transpose` operation.
      """
      input_shape = list(input_shape)
      if axes is None:
          return tuple(input_shape[::-1])
  
      if len(axes) != len(input_shape):
          raise ValueError(
              "axis must be a list of the same length as the input shape, "
              f"expected {len(input_shape)}, but received {len(axes)}."
          )
      return tuple(input_shape[ax] for ax in axes)
  
file_path: keras/keras/ops/operation_utils.py
imports: import math
  import numpy
  import tree
  from keras.api_export import keras_export
label_desc: Use image node_id 7 for calling a global function with example usage: compute_transpose_output_shape(input_shape, axes) and returns: tuple, tuple