code: def load_checkpoint(model, checkpoint_path):
      """
      load checkpoints
      :param checkpoint_path: Checkpoint path to be loaded
      """
      checkpoint = paddle.load(checkpoint_path)
      model.set_state_dict(checkpoint["state_dict"])
      print("load checkpoint from {}".format(checkpoint_path))
  
file_path: PaddleOCR/benchmark/PaddleOCR_DBNet/tools/export_model.py
imports: import os
  import sys
  import argparse
  import paddle
  from paddle.jit import to_static
  from models import build_model
  from utils import Config, ArgsParser
label_desc: Use image node_id 2 for calling a global function with example usage: load_checkpoint(model, checkpoint_path) without return types