code: def _create_training_config(max_epoch, iter_per_epoch, save_best):
      t = nnabla_pb2.TrainingConfig()
      t.max_epoch = max_epoch
      t.iter_per_epoch = iter_per_epoch
      t.save_best = save_best
      return t
  
file_path: nnabla/python/src/nnabla/utils/save.py
imports: import os
  import re
  import types
  import nnabla
  import numpy
  from collections import OrderedDict
  from nnabla.logger import logger
  from nnabla.parameter import get_parameters
  from nnabla.utils import nnabla_pb2
  from nnabla.utils.get_file_handle import FileHandlerContext, get_default_file_savers, save_files
label_desc: Use image node_id 2 for calling a global function with example usage: _create_training_config(max_epoch, iter_per_epoch, save_best) and returns: t