code: def _imread_after(img, size, interpolate, channel_first, imresize):
      # after-process for imread. resize and transpose img.
      if size is not None:
          img = imresize(img, size, interpolate=interpolate)
  
      if channel_first and len(img.shape) == 3:
          img = img.transpose((2, 0, 1))
  
      return img
  
file_path: nnabla/python/src/nnabla/utils/image_utils/backend_events/common.py
imports: from __future__ import division, absolute_import
  import numpy
  from nnabla.logger import logger
label_desc: Use image node_id 8 for calling a global function with example usage: _imread_after(img, size, interpolate, channel_first, imresize) and returns: img