code: def recursive_visit(net, callback, **kwargs):
      """Recursively visit and apply callback to a net and its sub-net
  
      Parameters
      ----------
      net : mxnet.gluon.Block
          The network to recursively visit
      callback : function
          The callback function to apply to each net block.
          Its first argument needs to be the block
      """
      callback(net, **kwargs)
      for _, child in net._children.items():
          recursive_visit(child, callback, **kwargs)
  
imports: import re
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: recursive_visit(net, callback) without return types