code: def ref_quantize_linear(
      x, scale, zero_point, round_mode, narrow_range, dtype, **kw
  ):
      y = x / scale
      if round_mode == "HALF_AWAY_FROM_ZERO":
          y = std_round(y)
      elif round_mode == "HALF_TO_EVEN":
          y = np.round(y)
      y = y + zero_point
  
      min_range = (
          np.iinfo(dtype).min
          if not narrow_range
          else np.iinfo(dtype).min + 1
      )
      max_range = np.iinfo(dtype).max
      y = np.clip(y, min_range, max_range)
      return y
  
file_path: nnabla/python/test/function/test_quantize_linear.py
imports: import pytest
  import numpy
  import nnabla.functions
  from nbla_test_utils import list_context
label_desc: Use image node_id 2 for calling a global function with example usage: ref_quantize_linear(x, scale, zero_point, round_mode, narrow_range, dtype) and returns: y