code: def save_model(
      exe,
      program,
      save_dir,
      model_name,
      postfix=None,
      save_type=".pdckpt",
  ):
      """
      save_type: '.pdckpt' or '.pdparams', '.pdckpt' for all persistable variables,
                 '.pdparams' for parameters only
      """
      if not os.path.isdir(save_dir):
          os.makedirs(save_dir)
      saved_model_name = model_name + postfix
  
      fluid.save(program, os.path.join(save_dir, saved_model_name))
  
      return
  
file_path: PaddleHub/modules/video/classification/videotag_tsn_lstm/resource/utils/train_utils.py
imports: import os
  import sys
  import logging
  import time
  import numpy
  import paddle.fluid
  from paddle.fluid import profiler
label_desc: Use image node_id 4 for calling a global function with example usage: save_model(exe, program, save_dir, model_name, postfix, save_type) without return types