code: def cal_multiplier_and_shift(scale):
      """
      In order to use gemmlowp, we need to use gemmlowp-like transform
      :param scale:
      :return: multiplier, shift
      """
      assert scale > 0, "scale should > 0, but get %s" % scale
      assert scale < 1, "scale should < 1, but get %s" % scale
      multiplier = scale
      s = 0
      # make range [1/2, 1)
      while multiplier < 0.5:
          multiplier *= 2.0
          s += 1
      # convert scale to fixed-point
      q = int(round(multiplier * (1 << 31)))
      assert q <= (1 << 31)
      if q == (1 << 31):
          q /= 2
          s -= 1
      assert s >= 0
      return q, s
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import math
  from transform.base_converter import DeviceType
label_desc: Use image node_id 5 for calling a global function with example usage: cal_multiplier_and_shift(scale) and returns: q,  s