code: def shift_axes_forward(
      operand,
      axes: tuple[int, ...],
      inverse: bool = False,
      forward: bool = True,
  ):
      """Shifts the tuple of axes to the front of an array"""
      other_axes = tuple(
          i for i in range(len(operand.shape)) if i not in axes
      )
      fwd_order = axes + other_axes if forward else other_axes + axes
      order = (
          fwd_order if not inverse else _invert_permutation(fwd_order)
      )
      return tf.transpose(operand, order)
  
imports: from __future__ import annotations
  import builtins
  from collections.abc import Sequence
  import dataclasses
  from functools import partial, wraps
  import math
  import string
  from typing import Any, Callable, Optional
  from jax._src import core
  from jax import lax
  from jax._src.lax import slicing
  from jax._src import dtypes
  from jax._src import util
  from jax.experimental.jax2tf import jax2tf
  import numpy
  import tensorflow
label_desc: Use image node_id 38 for calling a global function with example usage: shift_axes_forward(operand, axes, inverse, forward) and returns: tf