code: def init_program(args, program, exe):
      """
      Init from given checkpoint or pretrained parameters .
      Args:
          args(Namespace): Arguments obtained from ArgumentParser.
          program(paddle.static.Program): The program to init model.
          exe(paddle.static.Executor): The executor to run program.
      """
      if args.from_checkpoint is not None:
          init_ckpt(args.from_checkpoint, program, exe)
          logging.info(
              "Training will start at the %d-th epoch", args.start_epoch
          )
      elif args.from_pretrained_params is not None:
          init_pretrained(args.from_pretrained_params, program)
  
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 6 for calling a global function with example usage: init_program(args, program, exe) without return types