class_docstr: Apply `np.swapaxes` to fields.
  
  Parameters
  ----------
  input_fields
      Field to apply to
  axes
      Axes to use
class_docstr_tok: ["Apply","`","np.swapaxes","`","to","fields",".","Parameters","--","--","--","--","--","input_fields","Field","to","apply","to","axes","Axes","to","use"]
code: def transform(self, data: DataEntry) -> DataEntry:
      for field in self.input_fields:
          data[field] = self.swap(data[field])
      return data
  
imports: from typing import Callable, Iterator, List, Optional, Tuple, Type
  import numpy
  from toolz import valmap
  from gluonts.core.component import validated, tensor_to_numpy
  from gluonts.dataset.common import DataEntry
  from gluonts.exceptions import assert_data_error
  from ._base import FlatMapTransformation, MapTransformation, SimpleTransformation
label_desc: Use image node_id 2 for calling the SwapAxes obj's underlying member method code with example usage: obj.transform(data) and returns: data