code: def load_dygraph_pretrain(
      model, logger, path=None, load_static_weights=False
  ):
      if not os.path.exists(path + ".pdparams"):
          raise ValueError(
              "Model pretrain path {} does not " "exists.".format(path)
          )
      param_state_dict = paddle.load(path + ".pdparams")
      model.set_state_dict(param_state_dict)
      logger.info("load pretrained model from {}".format(path))
      return
  
label_desc: Use image node_id 1 for calling a global function with example usage: load_dygraph_pretrain(model, logger, path, load_static_weights) without return types