code: def save_model(program, model_path, epoch_id, prefix):
      """
      Save a model to given path.
      Args:
          program(paddle.static.Program): The program to be saved.
          model_path(str): The path to save model.
          epoch_id(int): The current epoch id.
      """
      if paddle.distributed.get_rank() != 0:
          return
      model_path = os.path.join(model_path, str(epoch_id))
      _mkdir_if_not_exist(model_path)
      model_prefix = os.path.join(model_path, prefix)
      paddle.static.save(program, model_prefix)
      logging.info("Already save model in %s", model_path)
  
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 7 for calling a global function with example usage: save_model(program, model_path, epoch_id, prefix) without return types