code: def generate_functions_pkl():
      import pickle
  
      yaml_data = {}
      d = utils.load_yaml_ordered(
          open(join(here, "functions.yaml"), "r")
      )
      if not exists(join(here, "api_levels.yaml")):
          regenerate_api_level_yaml()
      api_level_info = utils.load_yaml_ordered(
          open(join(here, "api_levels.yaml"), "r")
      )
  
      for cat_name, cat_info in d.items():
          for func_name, func_info in d[cat_name].items():
              if "doc" in func_info:
                  del func_info["doc"]
              for a in ["inputs", "arguments", "outputs"]:
                  if a in func_info:
                      for b in func_info[a]:
                          if "doc" in func_info[a][b]:
                              del func_info[a][b]["doc"]
              fmt = ""
              if "arguments" in func_info:
                  fmt = "_"
                  for a, a_info in func_info["arguments"].items():
                      fmt += type_to_pack_format(a_info["type"])
              func_info["uniq_name"] = func_name + fmt
              func_info["id"] = list(
                  func_info["function_ids"].items()
              ).pop()[1]
      yaml_data["nnabla_func_info"] = d
  
      o = utils.load_yaml_ordered(
          open(
              join(
                  base,
                  "python/test/utils/conversion/exporter_funcs_opset.yaml",
              ),
              "r",
          )
      )
      yaml_data["onnx_func_info"] = {}
      for func, func_info in o.items():
          if "Not implemented" in func_info:
              continue
          else:
              yaml_data["onnx_func_info"][func] = func_info
  
      yaml_data["api_level_info"] = api_level_info
      with open(
          join(base, "python/src/nnabla/utils/converter/functions.pkl"),
          "wb",
      ) as f:
          pickle.dump(yaml_data, f, 2)
  
file_path: nnabla/build-tools/code_generator/generate.py
imports: import sys
  from collections import OrderedDict
  from os.path import abspath, dirname, join, exists
  from contextlib import contextmanager
  import code_generator_utils
label_desc: Use image node_id 10 for calling a global function with example usage: generate_functions_pkl() without return types