code: def fw_swapaxes(x, ax_1, ax_2, fw):
      if fw is numpy:
          return fw.swapaxes(x, ax_1, ax_2)
      else:
          if ax_1 == -1:
              ax_1 = len(x.shape) - 1
          if ax_2 == -1:
              ax_2 = len(x.shape) - 1
          perm0 = list(range(len(x.shape)))
          temp = ax_1
          perm0[temp] = ax_2
          perm0[ax_2] = temp
          return fw.transpose(x, perm0)
  
imports: import warnings
  from fractions import Fraction
  from math import ceil
  from typing import Tuple
  import disco_diffusion_ernievil_base.resize_right.interp_methods
label_desc: Use image node_id 13 for calling a global function with example usage: fw_swapaxes(x, ax_1, ax_2, fw) and returns: fw, fw