code: def __init__(self, ndim, axes):
      assert len(axes) != 1
      outer_axes = sorted(set(range(ndim)).difference(axes))
      inner_axes = sorted(axes)
      self.ndim = ndim
      self.axes = axes
      self.outer_axes = outer_axes
      self.transpose_axes = outer_axes + inner_axes
      self.transposed_shape = None
      self.inv_transpose_axes = np.argsort(self.transpose_axes).tolist()
  
imports: from __future__ import absolute_import
  from .function_bases import *
  from six.moves import reduce
  import numpy
  import nnabla
label_desc: Use image node_id 1 to create a new BatchNormalizationInOutAdapter object from inherited base classes: object with example: obj = BatchNormalizationInOutAdapter(ndim, axes)