code: def _transpose_array(arr, src_layout, dst_layout):
      trans = _get_layout_transpose_axes(
          arr.ndim, src_layout, dst_layout
      )
      if trans is None:
          return arr
      return arr.transpose(*trans)
  
file_path: chainer/chainer/memory_layouts.py
imports: import chainer
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 3 for calling a global function with example usage: _transpose_array(arr, src_layout, dst_layout) and returns: arr, arr