code: def upscale_pixel_intensity(img, as_uint16):
      if img.dtype == np.uint16:
          return img
  
      if img.dtype == np.uint8:
          return upscale_uint8_image(img, as_uint16)
  
      return upscale_float_image(img, as_uint16)
  
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 5 for calling a global function with example usage: upscale_pixel_intensity(img, as_uint16) and returns: upscale_float_image, img, upscale_uint8_image