code: def init_ckpt(path_to_ckpt, program, exe):
      """
      Init from checkpoints or pretrained model in given path.
      Args:
          path_to_ckpt(str): The path to files of checkpoints,
                             including '.pdparams' and '.pdopt'.
          program(paddle.static.Program): The program to init model.
          exe(paddle.static.Executor): The executor to run program.
      """
      paddle.static.load(program, path_to_ckpt, exe)
      logging.info(
          "Finish initalizing the checkpoint from %s", path_to_ckpt
      )
  
file_path: DALI/docs/examples/use_cases/paddle/resnet50/utils/save_load.py
imports: import errno
  import os
  import re
  import shutil
  import tempfile
  import logging
  import paddle
label_desc: Use image node_id 4 for calling a global function with example usage: init_ckpt(path_to_ckpt, program, exe) without return types