def concatenate_axes(arrays, axes):
 if (len(axes) != ndimlist(arrays)):
  raise ValueError('Length of axes should equal depth of nested arrays')
 extradims = max(0, (deepfirst(arrays).ndim - (max(axes) + 1)))
 return concatenate3(transposelist(arrays, axes, extradims=extradims))

def concatenate_axes ( arrays , axes ) : if ( len ( axes ) != ndimlist ( arrays ) ) : raise ValueError ( 'Length of axes should equal depth of nested arrays' ) extradims = max ( 0 , ( deepfirst ( arrays ) . ndim - ( max ( axes ) + 1 ) ) ) return concatenate3 ( transposelist ( arrays , axes , extradims = extradims ) )
recursively call np .