code: def print_prune_params(model):
      model_dict = model.state_dict()
      for key in model_dict.keys():
          weight_name = model_dict[key].name
          logger.info(
              "Parameter name: {}, shape: {}".format(
                  weight_name, model_dict[key].shape
              )
          )
  
file_path: PaddleDetection/ppdet/slim/prune.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle.utils import try_import
  from ppdet.core.workspace import register, serializable
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 1 for calling a global function with example usage: print_prune_params(model) without return types