code: def _max_scale(sq_call):
      """calculate weight scale with maximum absolute value"""
      var = sq_call.args[0]
      assert isinstance(var, _expr.Constant)
      val = np.amax(np.abs(var.data.numpy()))
      return val
  
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 8 for calling a global function with example usage: _max_scale(sq_call) and returns: val