code: def swapaxes(
      x,
      axis0,
      axis1,
      /,
      *,
      copy: Optional[bool] = None,
      out: Optional[Union[tf.Tensor, tf.Variable]] = None,
  ):
      x_shape = x.shape
      num_dims = len(x_shape)
      axis0 %= num_dims
      axis1 %= num_dims
      config = list(range(num_dims))
      config.pop(axis0)
      config.insert(axis0, axis1)
      config.pop(axis1)
      config.insert(axis1, axis0)
      return tf.transpose(x, config)
  
imports: import math
  from numbers import Number
  from typing import Union, Tuple, Optional, List, Sequence
  import numpy
  import tensorflow
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.ivy.manipulation import _calculate_out_shape
  from .None import backend_version
label_desc: Use image node_id 15 for calling a global function with example usage: swapaxes() and returns: tf