code: def upscale_uint8_image(img, as_uint16):
      if as_uint16:
          return np.asarray(img, np.uint16) * 256
  
      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 3 for calling a global function with example usage: upscale_uint8_image(img, as_uint16) and returns: img, unknown