code: def get_scale_factor(img, auto_scale, as_uint16):
      if auto_scale:
          if img.dtype == np.uint8:
              if as_uint16:
                  return 256
          elif img.dtype != np.uint16:
              return 65535 if as_uint16 else 255
  
      return 1
  
file_path: nnabla/python/test/utils/test_image_utils.py
imports: from __future__ import division
  import pytest
  import numpy
  from nnabla.utils import image_utils
  from nnabla.logger import logger
  from nnabla.testing import assert_allclose
label_desc: Use image node_id 3 for calling a global function with example usage: get_scale_factor(img, auto_scale, as_uint16) and returns: int, int, unknown