code: def func_set_init(func):
      def __ensure_load_pickle(*args):
          global _nnabla_func_info
          global _onnx_func_info
          global _api_level_info
          if _nnabla_func_info is None:
              with open(
                  join(dirname(abspath(__file__)), "functions.pkl"),
                  "rb",
              ) as f:
                  data = pickle.load(f)
                  _nnabla_func_info = data["nnabla_func_info"]
                  _onnx_func_info = data["onnx_func_info"]
                  _api_level_info = data["api_level_info"]
              load_yaml_from_cache_dir()
          return func(*args)
  
      return __ensure_load_pickle
  
imports: import pickle
  import zlib
  from collections import OrderedDict
  from os.path import abspath, join, dirname, expanduser
  import glob
  import os
  import yaml
  import certifi
  import ssl
  from nnabla.utils import nnabla_pb2
  from nnabla.logger import logger
label_desc: Use image node_id 8 for calling a global function with example usage: func_set_init(func) and returns: __ensure_load_pickle, func