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 __init__(
      self, input_fields: List[str], axes: Tuple[int, int]
  ) -> None:
      self.input_fields = input_fields
      self.axis1, self.axis2 = axes
  
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 1 to create a new SwapAxes object from inherited base classes: SimpleTransformation with example: obj = SwapAxes(input_fields, axes)