code: def _create_global_config(ctx):
      g = nnabla_pb2.GlobalConfig()
      g.default_context.backends[:] = ctx.backend
      g.default_context.array_class = ctx.array_class
      g.default_context.device_id = ctx.device_id
      return g
  
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 1 for calling a global function with example usage: _create_global_config(ctx) and returns: g