code: def _quantize_module(model, policies):
      for name, child in model.named_children():
          if child.__class__ in policies:
              orig = repr(child)
              setattr(model, name, policies[child.__class__](child))
              new = getattr(model, name)
          else:
              _quantize_module(child, policies)
  
      return model
  
imports: import torch
label_desc: Use image node_id 3 for calling a global function with example usage: _quantize_module(model, policies) and returns: model