code: def check_qsym_scale_align(qsym):
      assert (
          "".join(qsym.attr_dict().keys()).find(
              "quantized_sg_onednn_conv"
          )
          != -1
      )
      init = False
      for k, v in qsym.attr_dict().items():
          if k.find("quantized_sg_onednn_conv") != -1:
              assert "min_calib_range" in v
              assert "max_calib_range" in v
              if not init:
                  min_calib_range = v["min_calib_range"]
                  max_calib_range = v["max_calib_range"]
                  init = True
              else:
                  assert min_calib_range == v["min_calib_range"]
                  assert max_calib_range == v["max_calib_range"]
  
imports: import mxnet
  import numpy
  import unittest
  import pytest
  import ctypes
  import copy
  from mxnet.contrib import quantization
  from mxnet.gluon import nn
  from mxnet.test_utils import assert_almost_equal, assert_almost_equal_with_err
label_desc: Use image node_id 2 for calling a global function with example usage: check_qsym_scale_align(qsym) without return types