code: def _power2_scale(sq_call):  # pylint: disable=unused-argument
      """calculate weight scale with nearest mode-2 scale"""
      var = sq_call.args[0]
      assert isinstance(var, _expr.Constant)
      val = np.amax(np.abs(var.data.numpy()))
      return 2 ** np.math.ceil(np.math.log(val, 2)) if val > 0 else 1.0
  
imports: from __future__ import absolute_import
  import logging
  import multiprocessing
  import numpy
  import tvm
  import tvm.driver
  from tvm.ir import IRModule
  from .None import _quantize
  from .None import quantize
  from ..None import op
  from ..None import expr
  from ..None import analysis
  from ..None import build_module
  from ...contrib import graph_executor
  from .kl_divergence import _find_scale_by_kl
label_desc: Use image node_id 7 for calling a global function with example usage: _power2_scale(sq_call) and returns: unknown