code: def _transpose_shape(shape, src_layout, dst_layout):
      trans = _get_layout_transpose_axes(
          len(shape), src_layout, dst_layout
      )
      if trans is None:
          return shape
      return tuple([shape[i] for i in 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 4 for calling a global function with example usage: _transpose_shape(shape, src_layout, dst_layout) and returns: tuple, shape