code: def _get_full_path_of_pretrained_params(args):
      if args.from_pretrained_params is None:
          args.last_epoch_of_checkpoint = -1
          return
  
      args.from_pretrained_params = os.path.join(
          args.from_pretrained_params, args.model_prefix
      )
      pdparams_path = args.from_pretrained_params + _PDPARAMS_SUFFIX
      if not os.path.exists(pdparams_path):
          args.from_pretrained_params = None
          logging.warning(
              f"Cannot find {pdparams_path}, disable --from-pretrained-params."
          )
      args.last_epoch_of_checkpoint = -1
  
file_path: DALI/docs/examples/use_cases/paddle/resnet50/utils/config.py
imports: import os
  import copy
  import argparse
  import logging
  import distutils.util
  import dllogger
  from utils.mode import RunScope
  from utils.utility import get_num_trainers
  from utils.save_load import _PDOPT_SUFFIX, _PDPARAMS_SUFFIX
label_desc: Use image node_id 2 for calling a global function with example usage: _get_full_path_of_pretrained_params(args) without return types