def split_axis(x, indices_or_sections, axis, force_tuple=False):
 res = SplitAxis(indices_or_sections, axis)(x)
 if (force_tuple and isinstance(res, chainer.Variable)):
  res = (res,)
 return res

def split_axis ( x , indices_or_sections , axis , force_tuple = False ) : res = SplitAxis ( indices_or_sections , axis ) ( x ) if ( force_tuple and isinstance ( res , chainer . Variable ) ) : res = ( res , ) return res
splits given variables along an axis .