code: def _format_opti_config_for_states_checkpoint(ctx, contents):
      ctx.optimizers = OrderedDict()
      for opti_i in contents["optimizers"]:
          opt = types.SimpleNamespace(**opti_i)
          ctx.optimizers[opt.name] = types.SimpleNamespace(
              optimizer=opt
          )
  
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 3 for calling a global function with example usage: _format_opti_config_for_states_checkpoint(ctx, contents) without return types