code: def check_bn_frozen_callback(net, value):
      if isinstance(net, BatchNorm):
          assert value == net._kwargs["use_global_stats"]
  
imports: from __future__ import print_function
  import numpy
  import gluoncv
  from mxnet.gluon.nn import BatchNorm
label_desc: Use image node_id 1 for calling a global function with example usage: check_bn_frozen_callback(net, value) without return types